home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 47 / PC Gamer IT CD 47 2-2.iso / Nerf / NERFDEMO.EXE / System / HuntBots.u / P_HuntBots_ScriptText.TextBuffer < prev    next >
Unknown  |  1999-10-21  |  89.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 65 96 0b 2f 2f 3d 3d 3d |........|e..//===|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0a 2f 2f 20 48 |========|==..// H|
|00000060| 75 6e 74 42 6f 74 73 2e | 0d 0a 2f 2f 3d 3d 3d 3d |untBots.|..//====|
|00000070| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000080| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0d 0a 63 6c 61 73 73 |========|=..class|
|000000c0| 20 48 75 6e 74 42 6f 74 | 73 20 65 78 70 61 6e 64 | HuntBot|s expand|
|000000d0| 73 20 4e 65 72 66 42 6f | 74 73 0d 0a 09 61 62 73 |s NerfBo|ts...abs|
|000000e0| 74 72 61 63 74 3b 0d 0a | 0d 0a 2f 2f 23 65 78 65 |tract;..|..//#exe|
|000000f0| 63 20 41 55 44 49 4f 20 | 49 4d 50 4f 52 54 20 46 |c AUDIO |IMPORT F|
|00000100| 49 4c 45 3d 22 53 6f 75 | 6e 64 73 5c 47 65 6e 65 |ILE="Sou|nds\Gene|
|00000110| 72 69 63 5c 6c 61 6e 64 | 31 2e 57 41 56 22 20 4e |ric\land|1.WAV" N|
|00000120| 41 4d 45 3d 22 4c 61 6e | 64 31 22 20 47 52 4f 55 |AME="Lan|d1" GROU|
|00000130| 50 3d 22 47 65 6e 65 72 | 69 63 22 0d 0a 2f 2f 23 |P="Gener|ic"..//#|
|00000140| 65 78 65 63 20 41 55 44 | 49 4f 20 49 4d 50 4f 52 |exec AUD|IO IMPOR|
|00000150| 54 20 46 49 4c 45 3d 22 | 53 6f 75 6e 64 73 5c 47 |T FILE="|Sounds\G|
|00000160| 65 6e 65 72 69 63 5c 6c | 73 70 6c 61 73 68 2e 57 |eneric\l|splash.W|
|00000170| 41 56 22 20 4e 41 4d 45 | 3d 22 4c 53 70 6c 61 73 |AV" NAME|="LSplas|
|00000180| 68 22 20 47 52 4f 55 50 | 3d 22 47 65 6e 65 72 69 |h" GROUP|="Generi|
|00000190| 63 22 0d 0a 0d 0a 76 61 | 72 09 09 50 61 77 6e 09 |c"....va|r..Pawn.|
|000001a0| 09 09 4c 61 73 74 48 69 | 74 42 79 3b 09 09 09 09 |..LastHi|tBy;....|
|000001b0| 2f 2f 20 77 68 6f 20 73 | 68 6f 74 20 6d 65 20 6c |// who s|hot me l|
|000001c0| 61 73 74 0d 0a 76 61 72 | 09 09 66 6c 6f 61 74 09 |ast..var|..float.|
|000001d0| 09 09 4c 61 73 74 48 69 | 74 54 69 6d 65 3b 09 09 |..LastHi|tTime;..|
|000001e0| 09 2f 2f 20 6c 61 73 74 | 20 74 69 6d 65 20 73 68 |.// last| time sh|
|000001f0| 6f 74 0d 0a 76 61 72 09 | 09 53 63 6f 72 65 50 6f |ot..var.|.ScorePo|
|00000200| 69 6e 74 09 09 53 63 6f | 72 65 50 74 4f 72 64 65 |int..Sco|rePtOrde|
|00000210| 72 3b 0d 0a 76 61 72 09 | 09 57 65 61 70 6f 6e 09 |r;..var.|.Weapon.|
|00000220| 09 09 4c 61 73 74 57 65 | 61 70 6f 6e 3b 0d 0a 0d |..LastWe|apon;...|
|00000230| 0a 2f 2f 20 66 72 6f 6d | 20 52 61 63 65 42 6f 74 |.// from| RaceBot|
|00000240| 73 3a 0d 0a 76 61 72 20 | 20 20 20 20 6d 6f 76 65 |s:..var | move|
|00000250| 72 20 20 20 20 20 20 20 | 74 4d 6f 76 3b 0d 0a 76 |r |tMov;..v|
|00000260| 61 72 20 20 20 20 20 69 | 6e 74 20 20 20 20 20 20 |ar i|nt |
|00000270| 20 20 20 54 75 72 6e 43 | 6f 75 6e 74 3b 0d 0a 76 | TurnC|ount;..v|
|00000280| 61 72 20 20 20 20 20 69 | 6e 74 20 20 20 20 20 20 |ar i|nt |
|00000290| 20 20 20 54 75 72 6e 43 | 6f 75 6e 74 65 72 3b 0d | TurnC|ounter;.|
|000002a0| 0a 76 61 72 20 20 20 20 | 20 66 6c 6f 61 74 20 20 |.var | float |
|000002b0| 20 20 20 20 20 4d 6f 6f | 64 3b 0d 0a 76 61 72 20 | Moo|d;..var |
|000002c0| 20 20 20 20 66 6c 6f 61 | 74 20 20 20 20 20 20 20 | floa|t |
|000002d0| 4d 6f 6f 64 54 68 72 65 | 73 68 68 6f 6c 64 3b 0d |MoodThre|shhold;.|
|000002e0| 0a 76 61 72 20 20 20 20 | 20 66 6c 6f 61 74 20 20 |.var | float |
|000002f0| 20 20 20 20 20 44 61 6d | 61 67 65 54 68 72 65 73 | Dam|ageThres|
|00000300| 68 68 6f 6c 64 3b 0d 0a | 76 61 72 20 20 20 20 20 |hhold;..|var |
|00000310| 62 6f 6f 6c 20 20 20 20 | 20 20 20 20 62 4d 6f 6f |bool | bMoo|
|00000320| 64 54 69 6d 65 72 3b 0d | 0a 0d 0a 76 61 72 09 09 |dTimer;.|...var..|
|00000330| 53 63 6f 72 65 50 6f 69 | 6e 74 09 44 65 70 6f 73 |ScorePoi|nt.Depos|
|00000340| 69 74 50 6f 69 6e 74 3b | 0d 0a 76 61 72 09 09 61 |itPoint;|..var..a|
|00000350| 63 74 6f 72 09 09 44 65 | 70 6f 73 69 74 50 61 74 |ctor..De|positPat|
|00000360| 68 3b 0d 0a 76 61 72 20 | 20 20 20 20 53 74 61 72 |h;..var | Star|
|00000370| 74 47 75 6e 20 20 20 20 | 73 67 3b 20 20 20 20 20 |tGun |sg; |
|00000380| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000390| 2f 2f 20 74 6f 20 73 65 | 65 20 77 68 65 74 68 65 |// to se|e whethe|
|000003a0| 72 20 77 65 20 73 68 6f | 75 6c 64 20 77 61 69 74 |r we sho|uld wait|
|000003b0| 0d 0a 76 61 72 28 41 49 | 29 20 66 6c 6f 61 74 09 |..var(AI|) float.|
|000003c0| 09 50 69 63 6b 75 70 53 | 69 67 68 74 52 61 64 69 |.PickupS|ightRadi|
|000003d0| 75 73 3b 09 09 2f 2f 20 | 75 73 65 64 20 69 6e 20 |us;..// |used in |
|000003e0| 4c 6f 6f 6b 46 6f 72 49 | 6e 76 65 6e 74 6f 72 79 |LookForI|nventory|
|000003f0| 28 29 0d 0a 76 61 72 28 | 41 49 29 20 66 6c 6f 61 |()..var(|AI) floa|
|00000400| 74 09 09 53 63 6f 72 65 | 53 68 6f 6f 74 49 6e 74 |t..Score|ShootInt|
|00000410| 65 72 76 61 6c 3b 0d 0a | 0d 0a 0d 0a 73 74 72 75 |erval;..|....stru|
|00000420| 63 74 20 48 75 6e 74 50 | 6f 69 6e 74 49 6e 66 6f |ct HuntP|ointInfo|
|00000430| 0d 0a 7b 0d 0a 09 76 61 | 72 09 62 79 74 65 09 09 |..{...va|r.byte..|
|00000440| 62 49 73 4e 65 65 64 65 | 64 3b 09 09 2f 2f 20 62 |bIsNeede|d;..// b|
|00000450| 6f 6f 6c 65 61 6e 73 20 | 69 6e 20 73 74 72 75 63 |ooleans |in struc|
|00000460| 74 20 61 72 72 61 79 73 | 20 61 70 70 65 61 72 20 |t arrays| appear |
|00000470| 6e 6f 74 20 74 6f 20 77 | 6f 72 6b 0d 0a 09 76 61 |not to w|ork...va|
|00000480| 72 09 48 75 6e 74 50 6f | 69 6e 74 09 48 75 6e 74 |r.HuntPo|int.Hunt|
|00000490| 50 6f 69 6e 74 3b 0d 0a | 7d 3b 0d 0a 76 61 72 20 |Point;..|};..var |
|000004a0| 48 75 6e 74 50 6f 69 6e | 74 49 6e 66 6f 09 4c 65 |HuntPoin|tInfo.Le|
|000004b0| 76 65 6c 48 75 6e 74 50 | 6f 69 6e 74 73 5b 32 30 |velHuntP|oints[20|
|000004c0| 5d 3b 0d 0a 76 61 72 20 | 69 6e 74 09 09 09 09 4c |];..var |int....L|
|000004d0| 65 76 65 6c 4e 75 6d 42 | 61 6c 6c 73 3b 0d 0a 0d |evelNumB|alls;...|
|000004e0| 0a 66 75 6e 63 74 69 6f | 6e 20 50 6f 73 74 42 65 |.functio|n PostBe|
|000004f0| 67 69 6e 50 6c 61 79 28 | 29 0d 0a 7b 0d 0a 20 20 |ginPlay(|)..{.. |
|00000500| 20 20 6c 6f 63 61 6c 20 | 66 6c 6f 61 74 20 20 20 | local |float |
|00000510| 20 20 6d 6f 6f 64 6c 65 | 76 65 6c 3b 0d 0a 20 20 | moodle|vel;.. |
|00000520| 20 20 6c 6f 63 61 6c 20 | 66 6c 6f 61 74 20 20 20 | local |float |
|00000530| 20 20 64 61 6d 61 67 65 | 6c 65 76 65 6c 3b 0d 0a | damage|level;..|
|00000540| 20 20 20 20 6c 6f 63 61 | 6c 20 66 6c 6f 61 74 20 | loca|l float |
|00000550| 20 20 20 20 73 70 65 65 | 64 62 75 6d 70 3b 0d 0a | spee|dbump;..|
|00000560| 0d 0a 09 2f 2f 54 72 61 | 63 65 4c 6f 67 28 63 6c |...//Tra|ceLog(cl|
|00000570| 61 73 73 2c 20 31 30 2c | 20 22 69 6e 20 50 6f 73 |ass, 10,| "in Pos|
|00000580| 74 42 65 67 69 6e 50 6c | 61 79 28 29 22 29 3b 0d |tBeginPl|ay()");.|
|00000590| 0a 09 53 65 74 53 65 65 | 6b 50 61 74 74 65 72 6e |..SetSee|kPattern|
|000005a0| 28 29 3b 0d 0a 0d 0a 20 | 20 20 20 6d 6f 6f 64 6c |();.... | moodl|
|000005b0| 65 76 65 6c 20 3d 20 31 | 2e 30 3b 0d 0a 20 20 20 |evel = 1|.0;.. |
|000005c0| 20 64 61 6d 61 67 65 6c | 65 76 65 6c 20 3d 20 35 | damagel|evel = 5|
|000005d0| 30 3b 0d 0a 20 20 20 20 | 73 70 65 65 64 62 75 6d |0;.. |speedbum|
|000005e0| 70 20 3d 20 30 2e 30 3b | 0d 0a 20 20 20 20 73 77 |p = 0.0;|.. sw|
|000005f0| 69 74 63 68 28 20 4c 65 | 76 65 6c 2e 47 61 6d 65 |itch( Le|vel.Game|
|00000600| 2e 44 69 66 66 69 63 75 | 6c 74 79 20 29 0d 0a 20 |.Difficu|lty ).. |
|00000610| 20 20 20 7b 0d 0a 20 20 | 20 20 20 20 20 20 63 61 | {.. | ca|
|00000620| 73 65 20 30 3a 0d 0a 20 | 20 20 20 20 20 20 20 20 |se 0:.. | |
|00000630| 20 20 20 6d 6f 6f 64 6c | 65 76 65 6c 20 3d 20 30 | moodl|evel = 0|
|00000640| 2e 33 35 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |.35;.. | |
|00000650| 20 20 64 61 6d 61 67 65 | 6c 65 76 65 6c 20 3d 20 | damage|level = |
|00000660| 32 35 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |25;.. | |
|00000670| 20 73 70 65 65 64 62 75 | 6d 70 20 3d 20 30 2e 30 | speedbu|mp = 0.0|
|00000680| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 62 |;.. | b|
|00000690| 72 65 61 6b 3b 0d 0a 20 | 20 20 20 20 20 20 20 63 |reak;.. | c|
|000006a0| 61 73 65 20 31 3a 0d 0a | 20 20 20 20 20 20 20 20 |ase 1:..| |
|000006b0| 20 20 20 20 6d 6f 6f 64 | 6c 65 76 65 6c 20 3d 20 | mood|level = |
|000006c0| 30 2e 33 30 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |0.30;.. | |
|000006d0| 20 20 20 64 61 6d 61 67 | 65 6c 65 76 65 6c 20 3d | damag|elevel =|
|000006e0| 20 31 35 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 | 15;.. | |
|000006f0| 20 20 73 70 65 65 64 62 | 75 6d 70 20 3d 20 33 30 | speedb|ump = 30|
|00000700| 2e 30 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |.0;.. | |
|00000710| 20 62 72 65 61 6b 3b 0d | 0a 20 20 20 20 20 20 20 | break;.|. |
|00000720| 20 63 61 73 65 20 32 3a | 0d 0a 20 20 20 20 20 20 | case 2:|.. |
|00000730| 20 20 20 20 20 20 6d 6f | 6f 64 6c 65 76 65 6c 20 | mo|odlevel |
|00000740| 3d 20 30 2e 32 35 3b 0d | 0a 20 20 20 20 20 20 20 |= 0.25;.|. |
|00000750| 20 20 20 20 20 64 61 6d | 61 67 65 6c 65 76 65 6c | dam|agelevel|
|00000760| 20 3d 20 31 30 3b 0d 0a | 20 20 20 20 20 20 20 20 | = 10;..| |
|00000770| 20 20 20 20 73 70 65 65 | 64 62 75 6d 70 20 3d 20 | spee|dbump = |
|00000780| 36 30 2e 30 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |60.0;.. | |
|00000790| 20 20 20 62 72 65 61 6b | 3b 0d 0a 20 20 20 20 20 | break|;.. |
|000007a0| 20 20 20 63 61 73 65 20 | 33 3a 0d 0a 20 20 20 20 | case |3:.. |
|000007b0| 20 20 20 20 20 20 20 20 | 6d 6f 6f 64 6c 65 76 65 | |moodleve|
|000007c0| 6c 20 3d 20 30 2e 32 30 | 3b 0d 0a 20 20 20 20 20 |l = 0.20|;.. |
|000007d0| 20 20 20 20 20 20 20 64 | 61 6d 61 67 65 6c 65 76 | d|amagelev|
|000007e0| 65 6c 20 3d 20 20 35 3b | 0d 0a 20 20 20 20 20 20 |el = 5;|.. |
|000007f0| 20 20 20 20 20 20 73 70 | 65 65 64 62 75 6d 70 20 | sp|eedbump |
|00000800| 3d 20 39 30 2e 30 3b 0d | 0a 20 20 20 20 20 20 20 |= 90.0;.|. |
|00000810| 20 20 20 20 20 62 72 65 | 61 6b 3b 0d 0a 20 20 20 | bre|ak;.. |
|00000820| 20 7d 20 20 20 20 0d 0a | 20 20 20 20 4d 6f 6f 64 | } ..| Mood|
|00000830| 54 68 72 65 73 68 68 6f | 6c 64 20 3d 20 6d 6f 6f |Threshho|ld = moo|
|00000840| 64 6c 65 76 65 6c 3b 20 | 20 20 20 20 20 20 20 20 |dlevel; | |
|00000850| 2f 2f 20 68 6f 77 20 65 | 61 73 69 6c 79 20 52 61 |// how e|asily Ra|
|00000860| 63 65 42 6f 74 73 20 67 | 65 74 20 74 69 63 6b 65 |ceBots g|et ticke|
|00000870| 64 20 6f 66 66 0d 0a 20 | 20 20 20 44 61 6d 61 67 |d off.. | Damag|
|00000880| 65 54 68 72 65 73 68 68 | 6f 6c 64 20 3d 20 64 61 |eThreshh|old = da|
|00000890| 6d 61 67 65 6c 65 76 65 | 6c 3b 0d 0a 20 20 20 20 |mageleve|l;.. |
|000008a0| 47 72 6f 75 6e 64 73 70 | 65 65 64 20 3d 20 44 65 |Groundsp|eed = De|
|000008b0| 66 61 75 6c 74 2e 47 72 | 6f 75 6e 64 73 70 65 65 |fault.Gr|oundspee|
|000008c0| 64 20 2b 20 73 70 65 65 | 64 62 75 6d 70 3b 0d 0a |d + spee|dbump;..|
|000008d0| 20 20 20 20 44 65 66 61 | 75 6c 74 2e 47 72 6f 75 | Defa|ult.Grou|
|000008e0| 6e 64 73 70 65 65 64 20 | 3d 20 47 72 6f 75 6e 64 |ndspeed |= Ground|
|000008f0| 73 70 65 65 64 3b 0d 0a | 0d 0a 09 53 75 70 65 72 |speed;..|...Super|
|00000900| 2e 50 6f 73 74 42 65 67 | 69 6e 50 6c 61 79 28 29 |.PostBeg|inPlay()|
|00000910| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00000920| 20 53 65 74 53 65 65 6b | 50 61 74 74 65 72 6e 28 | SetSeek|Pattern(|
|00000930| 29 0d 0a 7b 0d 0a 09 6c | 6f 63 61 6c 20 48 75 6e |)..{...l|ocal Hun|
|00000940| 74 50 6f 69 6e 74 20 68 | 70 3b 0d 0a 09 6c 6f 63 |tPoint h|p;...loc|
|00000950| 61 6c 20 48 75 6e 74 50 | 6f 69 6e 74 49 6e 66 6f |al HuntP|ointInfo|
|00000960| 09 68 70 69 3b 0d 0a 09 | 6c 6f 63 61 6c 20 69 6e |.hpi;...|local in|
|00000970| 74 20 69 2c 20 53 6c 6f | 74 31 2c 20 53 6c 6f 74 |t i, Slo|t1, Slot|
|00000980| 32 3b 0d 0a 0d 0a 09 2f | 2f 54 72 61 63 65 4c 6f |2;...../|/TraceLo|
|00000990| 67 28 63 6c 61 73 73 2c | 20 31 30 2c 20 22 69 6e |g(class,| 10, "in|
|000009a0| 20 53 65 74 53 65 65 6b | 50 61 74 74 65 72 6e 28 | SetSeek|Pattern(|
|000009b0| 29 22 29 3b 0d 0a 0d 0a | 09 2f 2f 0d 0a 09 2f 2f |)");....|.//...//|
|000009c0| 20 62 75 69 6c 64 20 74 | 68 65 20 6c 65 76 65 6c | build t|he level|
|000009d0| 20 62 61 6c 6c 20 67 65 | 6e 65 72 61 74 6f 72 20 | ball ge|nerator |
|000009e0| 6c 69 73 74 0d 0a 09 2f | 2f 0d 0a 0d 0a 09 2f 2f |list.../|/.....//|
|000009f0| 20 6f 70 74 69 6d 69 7a | 61 74 69 6f 6e 3a 20 6f | optimiz|ation: o|
|00000a00| 6e 6c 79 20 65 6e 75 6d | 20 61 6c 6c 61 63 74 6f |nly enum| allacto|
|00000a10| 72 73 20 75 70 6f 6e 20 | 69 6e 69 74 69 61 6c 69 |rs upon |initiali|
|00000a20| 7a 61 74 69 6f 6e 0d 0a | 09 69 66 20 28 4c 65 76 |zation..|.if (Lev|
|00000a30| 65 6c 4e 75 6d 42 61 6c | 6c 73 20 3d 3d 20 30 29 |elNumBal|ls == 0)|
|00000a40| 0d 0a 09 7b 0d 0a 09 09 | 2f 2f 20 69 6e 69 74 69 |...{....|// initi|
|00000a50| 61 6c 69 7a 65 20 4c 65 | 76 65 6c 48 75 6e 74 50 |alize Le|velHuntP|
|00000a60| 6f 69 6e 74 73 20 61 72 | 72 61 79 0d 0a 09 09 66 |oints ar|ray....f|
|00000a70| 6f 72 65 61 63 68 20 41 | 6c 6c 41 63 74 6f 72 73 |oreach A|llActors|
|00000a80| 28 63 6c 61 73 73 27 48 | 75 6e 74 50 6f 69 6e 74 |(class'H|untPoint|
|00000a90| 27 2c 20 68 70 29 0d 0a | 09 09 7b 0d 0a 09 09 09 |', hp)..|..{.....|
|00000aa0| 4c 65 76 65 6c 48 75 6e | 74 50 6f 69 6e 74 73 5b |LevelHun|tPoints[|
|00000ab0| 69 5d 2e 48 75 6e 74 50 | 6f 69 6e 74 20 3d 20 68 |i].HuntP|oint = h|
|00000ac0| 70 3b 0d 0a 09 09 09 4c | 65 76 65 6c 48 75 6e 74 |p;.....L|evelHunt|
|00000ad0| 50 6f 69 6e 74 73 5b 69 | 5d 2e 62 49 73 4e 65 65 |Points[i|].bIsNee|
|00000ae0| 64 65 64 20 3d 20 31 3b | 0d 0a 09 09 09 69 2b 2b |ded = 1;|.....i++|
|00000af0| 3b 0d 0a 09 09 7d 0d 0a | 09 09 4c 65 76 65 6c 4e |;....}..|..LevelN|
|00000b00| 75 6d 42 61 6c 6c 73 20 | 3d 20 69 3b 0d 0a 09 7d |umBalls |= i;...}|
|00000b10| 0d 0a 09 65 6c 73 65 09 | 2f 2f 20 6f 6e 6c 79 20 |...else.|// only |
|00000b20| 72 65 69 6e 69 74 69 61 | 6c 69 7a 65 20 66 6c 61 |reinitia|lize fla|
|00000b30| 67 73 0d 0a 09 09 66 6f | 72 20 28 69 20 3d 20 30 |gs....fo|r (i = 0|
|00000b40| 3b 20 69 20 3c 20 4c 65 | 76 65 6c 4e 75 6d 42 61 |; i < Le|velNumBa|
|00000b50| 6c 6c 73 3b 20 69 2b 2b | 29 0d 0a 09 09 09 4c 65 |lls; i++|).....Le|
|00000b60| 76 65 6c 48 75 6e 74 50 | 6f 69 6e 74 73 5b 69 5d |velHuntP|oints[i]|
|00000b70| 2e 62 49 73 4e 65 65 64 | 65 64 20 3d 20 31 3b 0d |.bIsNeed|ed = 1;.|
|00000b80| 0a 0d 0a 09 2f 2f 20 73 | 68 75 66 66 6c 65 20 74 |....// s|huffle t|
|00000b90| 68 65 20 6f 72 64 65 72 | 0d 0a 09 66 6f 72 20 28 |he order|...for (|
|00000ba0| 69 20 3d 20 30 3b 20 69 | 20 3c 20 4c 65 76 65 6c |i = 0; i| < Level|
|00000bb0| 4e 75 6d 42 61 6c 6c 73 | 3b 20 69 2b 2b 29 0d 0a |NumBalls|; i++)..|
|00000bc0| 09 7b 0d 0a 09 09 2f 2f | 20 70 69 63 6b 20 74 77 |.{....//| pick tw|
|00000bd0| 6f 20 72 61 6e 64 6f 6d | 20 73 6c 6f 74 73 0d 0a |o random| slots..|
|00000be0| 09 09 73 6c 6f 74 31 20 | 3d 20 52 61 6e 64 28 4c |..slot1 |= Rand(L|
|00000bf0| 65 76 65 6c 4e 75 6d 42 | 61 6c 6c 73 29 3b 0d 0a |evelNumB|alls);..|
|00000c00| 09 09 73 6c 6f 74 32 20 | 3d 20 52 61 6e 64 28 4c |..slot2 |= Rand(L|
|00000c10| 65 76 65 6c 4e 75 6d 42 | 61 6c 6c 73 29 3b 0d 0a |evelNumB|alls);..|
|00000c20| 0d 0a 09 09 2f 2f 20 73 | 77 61 70 20 74 68 65 6d |....// s|wap them|
|00000c30| 0d 0a 09 09 68 70 69 20 | 3d 20 4c 65 76 65 6c 48 |....hpi |= LevelH|
|00000c40| 75 6e 74 50 6f 69 6e 74 | 73 5b 53 6c 6f 74 32 5d |untPoint|s[Slot2]|
|00000c50| 3b 0d 0a 09 09 4c 65 76 | 65 6c 48 75 6e 74 50 6f |;....Lev|elHuntPo|
|00000c60| 69 6e 74 73 5b 53 6c 6f | 74 32 5d 20 3d 20 4c 65 |ints[Slo|t2] = Le|
|00000c70| 76 65 6c 48 75 6e 74 50 | 6f 69 6e 74 73 5b 53 6c |velHuntP|oints[Sl|
|00000c80| 6f 74 31 5d 3b 0d 0a 09 | 09 4c 65 76 65 6c 48 75 |ot1];...|.LevelHu|
|00000c90| 6e 74 50 6f 69 6e 74 73 | 5b 53 6c 6f 74 31 5d 20 |ntPoints|[Slot1] |
|00000ca0| 3d 20 68 70 69 3b 0d 0a | 09 7d 0d 0a 7d 0d 0a 0d |= hpi;..|.}..}...|
|00000cb0| 0a 2f 2f 0d 0a 2f 2f 20 | 73 77 69 74 63 68 20 74 |.//..// |switch t|
|00000cc0| 6f 20 73 75 67 67 65 73 | 74 65 64 20 77 65 61 70 |o sugges|ted weap|
|00000cd0| 6f 6e 0d 0a 2f 2f 20 72 | 65 74 75 72 6e 20 54 52 |on..// r|eturn TR|
|00000ce0| 55 45 20 69 66 20 73 77 | 69 74 63 68 20 73 75 63 |UE if sw|itch suc|
|00000cf0| 63 65 73 73 66 75 6c 0d | 0a 2f 2f 20 65 6c 73 65 |cessful.|.// else|
|00000d00| 20 46 41 4c 53 45 20 69 | 66 20 77 65 61 70 6f 6e | FALSE i|f weapon|
|00000d10| 20 6e 6f 74 20 69 74 20 | 69 6e 76 65 6e 74 6f 72 | not it |inventor|
|00000d20| 79 0d 0a 2f 2f 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |y..//...|.functio|
|00000d30| 6e 20 62 6f 6f 6c 20 53 | 77 69 74 63 68 54 6f 57 |n bool S|witchToW|
|00000d40| 65 61 70 6f 6e 28 63 6c | 61 73 73 20 3c 57 65 61 |eapon(cl|ass <Wea|
|00000d50| 70 6f 6e 3e 44 65 73 69 | 72 65 64 57 65 61 70 6f |pon>Desi|redWeapo|
|00000d60| 6e 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 66 6c |n)..{...|local fl|
|00000d70| 6f 61 74 20 72 61 74 69 | 6e 67 3b 0d 0a 09 6c 6f |oat rati|ng;...lo|
|00000d80| 63 61 6c 20 69 6e 74 20 | 75 73 65 61 6c 74 2c 20 |cal int |usealt, |
|00000d90| 66 61 76 61 6c 74 3b 0d | 0a 09 6c 6f 63 61 6c 20 |favalt;.|..local |
|00000da0| 69 6e 76 65 6e 74 6f 72 | 79 20 4d 79 46 61 76 3b |inventor|y MyFav;|
|00000db0| 0d 0a 0d 0a 09 69 66 20 | 28 49 6e 76 65 6e 74 6f |.....if |(Invento|
|00000dc0| 72 79 20 3d 3d 20 4e 6f | 6e 65 29 0d 0a 09 09 72 |ry == No|ne)....r|
|00000dd0| 65 74 75 72 6e 20 66 61 | 6c 73 65 3b 0d 0a 0d 0a |eturn fa|lse;....|
|00000de0| 20 20 20 20 4d 79 46 61 | 76 20 3d 20 46 69 6e 64 | MyFa|v = Find|
|00000df0| 49 6e 76 65 6e 74 6f 72 | 79 54 79 70 65 28 44 65 |Inventor|yType(De|
|00000e00| 73 69 72 65 64 57 65 61 | 70 6f 6e 29 3b 0d 0a 20 |siredWea|pon);.. |
|00000e10| 20 20 20 69 66 20 28 4d | 79 46 61 76 20 3d 3d 20 | if (M|yFav == |
|00000e20| 4e 6f 6e 65 29 20 20 20 | 20 20 20 20 20 2f 2f 20 |None) | // |
|00000e30| 6e 6f 74 20 61 76 61 69 | 6c 61 62 6c 65 2c 20 6d |not avai|lable, m|
|00000e40| 75 73 74 20 66 69 6e 64 | 20 6f 6e 65 0d 0a 20 20 |ust find| one.. |
|00000e50| 20 20 20 20 20 20 72 65 | 74 75 72 6e 20 66 61 6c | re|turn fal|
|00000e60| 73 65 3b 0d 0a 0d 0a 09 | 50 65 6e 64 69 6e 67 57 |se;.....|PendingW|
|00000e70| 65 61 70 6f 6e 20 3d 20 | 57 65 61 70 6f 6e 28 4d |eapon = |Weapon(M|
|00000e80| 79 46 61 76 29 3b 0d 0a | 0d 0a 09 69 66 20 28 57 |yFav);..|...if (W|
|00000e90| 65 61 70 6f 6e 20 3d 3d | 20 4e 6f 6e 65 29 0d 0a |eapon ==| None)..|
|00000ea0| 09 09 43 68 61 6e 67 65 | 64 57 65 61 70 6f 6e 28 |..Change|dWeapon(|
|00000eb0| 29 3b 0d 0a 09 65 6c 73 | 65 20 69 66 20 28 57 65 |);...els|e if (We|
|00000ec0| 61 70 6f 6e 20 21 3d 20 | 50 65 6e 64 69 6e 67 57 |apon != |PendingW|
|00000ed0| 65 61 70 6f 6e 29 0d 0a | 09 09 57 65 61 70 6f 6e |eapon)..|..Weapon|
|00000ee0| 2e 50 75 74 44 6f 77 6e | 28 29 3b 0d 0a 20 20 20 |.PutDown|();.. |
|00000ef0| 20 57 65 61 70 6f 6e 20 | 3d 20 50 65 6e 64 69 6e | Weapon |= Pendin|
|00000f00| 67 57 65 61 70 6f 6e 3b | 0d 0a 0d 0a 20 20 20 20 |gWeapon;|.... |
|00000f10| 72 65 74 75 72 6e 20 74 | 72 75 65 3b 0d 0a 7d 0d |return t|rue;..}.|
|00000f20| 0a 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 62 6f |.....fun|ction bo|
|00000f30| 6f 6c 20 53 77 69 74 63 | 68 48 75 6e 74 47 75 6e |ol Switc|hHuntGun|
|00000f40| 28 63 6c 61 73 73 3c 57 | 65 61 70 6f 6e 3e 20 44 |(class<W|eapon> D|
|00000f50| 65 73 69 72 65 64 43 6c | 61 73 73 20 29 0d 0a 7b |esiredCl|ass )..{|
|00000f60| 0d 0a 20 20 20 20 6c 6f | 63 61 6c 20 57 65 61 70 |.. lo|cal Weap|
|00000f70| 6f 6e 20 20 20 20 73 3b | 0d 0a 20 20 20 20 6c 6f |on s;|.. lo|
|00000f80| 63 61 6c 20 62 6f 6f 6c | 20 20 20 20 20 20 62 52 |cal bool| bR|
|00000f90| 65 73 75 6c 74 3b 0d 0a | 09 6c 6f 63 61 6c 20 69 |esult;..|.local i|
|00000fa0| 6e 76 65 6e 74 6f 72 79 | 20 4d 79 46 61 76 3b 0d |nventory| MyFav;.|
|00000fb0| 0a 0d 0a 20 20 20 20 62 | 52 65 73 75 6c 74 20 3d |... b|Result =|
|00000fc0| 20 74 72 75 65 3b 0d 0a | 0d 0a 20 20 20 20 69 66 | true;..|.. if|
|00000fd0| 20 28 20 46 69 6e 64 49 | 6e 76 65 6e 74 6f 72 79 | ( FindI|nventory|
|00000fe0| 54 79 70 65 28 44 65 73 | 69 72 65 64 43 6c 61 73 |Type(Des|iredClas|
|00000ff0| 73 29 20 3d 3d 20 4e 6f | 6e 65 20 29 0d 0a 20 20 |s) == No|ne ).. |
|00001000| 20 20 7b 0d 0a 2f 2f 73 | 70 61 77 6e 20 61 20 64 | {..//s|pawn a d|
|00001010| 65 73 69 72 65 64 20 77 | 65 61 70 6f 6e 20 61 6e |esired w|eapon an|
|00001020| 64 20 61 74 74 61 63 68 | 20 69 74 20 74 6f 20 62 |d attach| it to b|
|00001030| 6f 74 73 20 69 6e 76 65 | 6e 74 6f 72 79 0d 0a 20 |ots inve|ntory.. |
|00001040| 20 20 20 20 20 20 20 73 | 20 3d 20 53 70 61 77 6e | s| = Spawn|
|00001050| 28 20 44 65 73 69 72 65 | 64 43 6c 61 73 73 2c 2c |( Desire|dClass,,|
|00001060| 2c 20 4c 6f 63 61 74 69 | 6f 6e 29 3b 0d 0a 20 20 |, Locati|on);.. |
|00001070| 20 20 20 20 20 20 69 66 | 20 28 73 20 21 3d 20 4e | if| (s != N|
|00001080| 6f 6e 65 29 0d 0a 20 20 | 20 20 20 20 20 20 7b 0d |one).. | {.|
|00001090| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 73 2e 62 |. | s.b|
|000010a0| 48 65 6c 64 49 74 65 6d | 20 3d 20 74 72 75 65 3b |HeldItem| = true;|
|000010b0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 73 2e |.. | s.|
|000010c0| 47 69 76 65 54 6f 28 20 | 73 65 6c 66 20 29 3b 0d |GiveTo( |self );.|
|000010d0| 0a 20 20 20 20 20 20 20 | 20 7d 0d 0a 20 20 20 20 |. | }.. |
|000010e0| 20 20 20 20 65 6c 73 65 | 20 62 52 65 73 75 6c 74 | else| bResult|
|000010f0| 20 3d 20 66 61 6c 73 65 | 3b 0d 0a 20 20 20 20 7d | = false|;.. }|
|00001100| 0d 0a 0d 0a 20 20 20 20 | 69 66 20 28 20 62 52 65 |.... |if ( bRe|
|00001110| 73 75 6c 74 20 29 0d 0a | 20 20 20 20 7b 0d 0a 20 |sult )..| {.. |
|00001120| 20 20 20 20 20 20 20 4d | 79 46 61 76 20 3d 20 46 | M|yFav = F|
|00001130| 69 6e 64 49 6e 76 65 6e | 74 6f 72 79 54 79 70 65 |indInven|toryType|
|00001140| 28 44 65 73 69 72 65 64 | 43 6c 61 73 73 29 3b 0d |(Desired|Class);.|
|00001150| 0a 20 20 20 20 20 20 20 | 20 69 66 20 28 20 4d 79 |. | if ( My|
|00001160| 46 61 76 20 3d 3d 20 4e | 6f 6e 65 20 29 0d 0a 20 |Fav == N|one ).. |
|00001170| 20 20 20 20 20 20 20 20 | 20 20 20 62 52 65 73 75 | | bResu|
|00001180| 6c 74 20 3d 20 66 61 6c | 73 65 3b 0d 0a 20 20 20 |lt = fal|se;.. |
|00001190| 20 20 20 20 20 65 6c 73 | 65 0d 0a 20 20 20 20 20 | els|e.. |
|000011a0| 20 20 20 7b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 | {.. | |
|000011b0| 20 20 50 65 6e 64 69 6e | 67 57 65 61 70 6f 6e 20 | Pendin|gWeapon |
|000011c0| 3d 20 57 65 61 70 6f 6e | 28 4d 79 46 61 76 29 3b |= Weapon|(MyFav);|
|000011d0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 69 66 |.. | if|
|000011e0| 20 28 57 65 61 70 6f 6e | 20 3d 3d 20 4e 6f 6e 65 | (Weapon| == None|
|000011f0| 29 20 43 68 61 6e 67 65 | 64 57 65 61 70 6f 6e 28 |) Change|dWeapon(|
|00001200| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 09 65 6c 73 |);.. | .els|
|00001210| 65 20 57 65 61 70 6f 6e | 2e 50 75 74 44 6f 77 6e |e Weapon|.PutDown|
|00001220| 28 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |();.. | |
|00001230| 20 57 65 61 70 6f 6e 20 | 3d 20 50 65 6e 64 69 6e | Weapon |= Pendin|
|00001240| 67 57 65 61 70 6f 6e 3b | 0d 0a 20 20 20 20 20 20 |gWeapon;|.. |
|00001250| 20 20 7d 0d 0a 20 20 20 | 20 7d 0d 0a 20 20 20 20 | }.. | }.. |
|00001260| 72 65 74 75 72 6e 20 62 | 52 65 73 75 6c 74 3b 0d |return b|Result;.|
|00001270| 0a 7d 0d 0a 0d 0a 2f 2a | 0d 0a 66 75 6e 63 74 69 |.}..../*|..functi|
|00001280| 6f 6e 20 52 65 70 6c 61 | 63 65 57 65 61 70 6f 6e |on Repla|ceWeapon|
|00001290| 28 20 70 61 77 6e 20 50 | 6c 61 79 65 72 20 29 0d |( pawn P|layer ).|
|000012a0| 0a 7b 0d 0a 20 20 20 20 | 6c 6f 63 61 6c 20 77 65 |.{.. |local we|
|000012b0| 61 70 6f 6e 20 6e 65 77 | 57 65 61 70 6f 6e 3b 0d |apon new|Weapon;.|
|000012c0| 0a 0d 0a 20 20 20 20 6e | 65 77 57 65 61 70 6f 6e |... n|ewWeapon|
|000012d0| 20 3d 20 53 70 61 77 6e | 28 63 6c 61 73 73 27 53 | = Spawn|(class'S|
|000012e0| 53 68 6f 74 27 29 3b 0d | 0a 20 20 20 20 69 66 28 |Shot');.|. if(|
|000012f0| 20 6e 65 77 57 65 61 70 | 6f 6e 20 21 3d 20 4e 6f | newWeap|on != No|
|00001300| 6e 65 20 29 0d 0a 20 20 | 20 20 7b 0d 0a 20 20 20 |ne ).. | {.. |
|00001310| 20 20 20 20 20 6e 65 77 | 57 65 61 70 6f 6e 2e 49 | new|Weapon.I|
|00001320| 6e 73 74 69 67 61 74 6f | 72 20 3d 20 50 6c 61 79 |nstigato|r = Play|
|00001330| 65 72 3b 0d 0a 20 20 20 | 20 20 20 20 20 6e 65 77 |er;.. | new|
|00001340| 57 65 61 70 6f 6e 2e 42 | 65 63 6f 6d 65 49 74 65 |Weapon.B|ecomeIte|
|00001350| 6d 28 29 3b 0d 0a 20 20 | 20 20 20 20 20 20 50 6c |m();.. | Pl|
|00001360| 61 79 65 72 2e 41 64 64 | 49 6e 76 65 6e 74 6f 72 |ayer.Add|Inventor|
|00001370| 79 28 6e 65 77 57 65 61 | 70 6f 6e 29 3b 0d 0a 20 |y(newWea|pon);.. |
|00001380| 20 20 20 20 20 20 20 6e | 65 77 57 65 61 70 6f 6e | n|ewWeapon|
|00001390| 2e 42 72 69 6e 67 55 70 | 28 29 3b 0d 0a 20 20 20 |.BringUp|();.. |
|000013a0| 20 20 20 20 20 6e 65 77 | 57 65 61 70 6f 6e 2e 47 | new|Weapon.G|
|000013b0| 69 76 65 41 6d 6d 6f 28 | 50 6c 61 79 65 72 29 3b |iveAmmo(|Player);|
|000013c0| 0d 0a 20 20 20 20 20 20 | 20 20 6e 65 77 57 65 61 |.. | newWea|
|000013d0| 70 6f 6e 2e 53 65 74 53 | 77 69 74 63 68 50 72 69 |pon.SetS|witchPri|
|000013e0| 6f 72 69 74 79 28 50 6c | 61 79 65 72 29 3b 0d 0a |ority(Pl|ayer);..|
|000013f0| 20 20 20 20 20 20 20 20 | 6e 65 77 57 65 61 70 6f | |newWeapo|
|00001400| 6e 2e 57 65 61 70 6f 6e | 53 65 74 28 50 6c 61 79 |n.Weapon|Set(Play|
|00001410| 65 72 29 3b 0d 0a 20 20 | 20 20 7d 0d 0a 7d 0d 0a |er);.. | }..}..|
|00001420| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 62 6f 6f 6c 20 |..functi|on bool |
|00001430| 53 77 69 74 63 68 54 6f | 42 65 73 74 57 65 61 70 |SwitchTo|BestWeap|
|00001440| 6f 6e 28 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |on()..{.|..local |
|00001450| 66 6c 6f 61 74 20 72 61 | 74 69 6e 67 3b 0d 0a 09 |float ra|ting;...|
|00001460| 6c 6f 63 61 6c 20 69 6e | 74 20 75 73 65 61 6c 74 |local in|t usealt|
|00001470| 2c 20 66 61 76 61 6c 74 | 3b 0d 0a 09 6c 6f 63 61 |, favalt|;...loca|
|00001480| 6c 20 69 6e 76 65 6e 74 | 6f 72 79 20 4d 79 46 61 |l invent|ory MyFa|
|00001490| 76 3b 0d 0a 20 20 20 20 | 6c 6f 63 61 6c 20 57 65 |v;.. |local We|
|000014a0| 61 70 6f 6e 20 4f 6c 64 | 57 65 61 70 6f 6e 3b 0d |apon Old|Weapon;.|
|000014b0| 0a 0d 0a 09 69 66 20 28 | 20 49 6e 76 65 6e 74 6f |....if (| Invento|
|000014c0| 72 79 20 3d 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 09 |ry == No|ne )....|
|000014d0| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 3b 0d 0a 0d |return f|alse;...|
|000014e0| 0a 20 20 20 20 4f 6c 64 | 57 65 61 70 6f 6e 20 3d |. Old|Weapon =|
|000014f0| 20 57 65 61 70 6f 6e 3b | 0d 0a 2f 2f 6c 6f 67 28 | Weapon;|..//log(|
|00001500| 20 73 65 6c 66 24 22 20 | 6f 6c 64 77 65 61 70 6f | self$" |oldweapo|
|00001510| 6e 20 3d 20 22 24 4f 6c | 64 57 65 61 70 6f 6e 20 |n = "$Ol|dWeapon |
|00001520| 29 3b 0d 0a 0d 0a 09 50 | 65 6e 64 69 6e 67 57 65 |);.....P|endingWe|
|00001530| 61 70 6f 6e 20 3d 20 49 | 6e 76 65 6e 74 6f 72 79 |apon = I|nventory|
|00001540| 2e 52 65 63 6f 6d 6d 65 | 6e 64 57 65 61 70 6f 6e |.Recomme|ndWeapon|
|00001550| 28 72 61 74 69 6e 67 2c | 20 75 73 65 61 6c 74 29 |(rating,| usealt)|
|00001560| 3b 0d 0a 2f 2f 6c 6f 67 | 28 20 73 65 6c 66 24 22 |;..//log|( self$"|
|00001570| 20 70 65 6e 64 77 65 61 | 70 6f 6e 20 3d 20 22 24 | pendwea|pon = "$|
|00001580| 50 65 6e 64 69 6e 67 57 | 65 61 70 6f 6e 20 29 3b |PendingW|eapon );|
|00001590| 0d 0a 0d 0a 09 69 66 20 | 28 20 50 65 6e 64 69 6e |.....if |( Pendin|
|000015a0| 67 57 65 61 70 6f 6e 20 | 3d 3d 20 4e 6f 6e 65 20 |gWeapon |== None |
|000015b0| 29 0d 0a 09 09 72 65 74 | 75 72 6e 20 66 61 6c 73 |)....ret|urn fals|
|000015c0| 65 3b 0d 0a 0d 0a 2f 2f | 6c 6f 67 28 20 73 65 6c |e;....//|log( sel|
|000015d0| 66 24 22 20 70 65 6e 64 | 77 65 61 70 6f 6e 2e 69 |f$" pend|weapon.i|
|000015e0| 73 61 28 62 67 29 20 3d | 20 22 24 50 65 6e 64 69 |sa(bg) =| "$Pendi|
|000015f0| 6e 67 57 65 61 70 6f 6e | 2e 49 73 41 28 27 53 48 |ngWeapon|.IsA('SH|
|00001600| 42 61 6c 6c 47 75 6e 27 | 29 20 29 3b 0d 0a 0d 0a |BallGun'|) );....|
|00001610| 20 20 20 20 69 66 20 28 | 20 50 65 6e 64 69 6e 67 | if (| Pending|
|00001620| 57 65 61 70 6f 6e 2e 49 | 73 41 28 27 53 48 42 61 |Weapon.I|sA('SHBa|
|00001630| 6c 6c 47 75 6e 27 29 20 | 29 0d 0a 20 20 20 20 7b |llGun') |).. {|
|00001640| 0d 0a 2f 2f 6c 6f 67 28 | 20 73 65 6c 66 24 22 20 |..//log(| self$" |
|00001650| 6c 6f 6f 6b 69 6e 67 20 | 66 6f 72 20 6d 79 20 53 |looking |for my S|
|00001660| 53 68 6f 74 22 20 29 3b | 0d 0a 20 20 20 20 20 20 |Shot" );|.. |
|00001670| 20 20 50 65 6e 64 69 6e | 67 57 65 61 70 6f 6e 20 | Pendin|gWeapon |
|00001680| 3d 20 57 65 61 70 6f 6e | 28 46 69 6e 64 49 6e 76 |= Weapon|(FindInv|
|00001690| 65 6e 74 6f 72 79 54 79 | 70 65 28 63 6c 61 73 73 |entoryTy|pe(class|
|000016a0| 20 27 53 53 68 6f 74 27 | 29 29 3b 0d 0a 20 20 20 | 'SShot'|));.. |
|000016b0| 20 20 20 20 20 69 66 20 | 28 20 50 65 6e 64 69 6e | if |( Pendin|
|000016c0| 67 57 65 61 70 6f 6e 20 | 3d 3d 20 4e 6f 6e 65 20 |gWeapon |== None |
|000016d0| 29 20 20 20 20 20 20 20 | 2f 2f 20 73 6f 6d 65 68 |) |// someh|
|000016e0| 6f 77 20 6c 6f 73 74 20 | 64 65 66 61 75 6c 74 20 |ow lost |default |
|000016f0| 77 65 61 70 6f 6e 0d 0a | 20 20 20 20 20 20 20 20 |weapon..| |
|00001700| 7b 0d 0a 2f 2f 6c 6f 67 | 28 20 73 65 6c 66 24 22 |{..//log|( self$"|
|00001710| 20 72 65 70 6c 61 63 69 | 6e 67 20 6d 79 20 4c 4f | replaci|ng my LO|
|00001720| 53 54 20 53 53 68 6f 74 | 22 20 29 3b 0d 0a 20 20 |ST SShot|" );.. |
|00001730| 20 20 20 20 20 20 20 20 | 20 20 52 65 70 6c 61 63 | | Replac|
|00001740| 65 57 65 61 70 6f 6e 28 | 20 73 65 6c 66 20 29 3b |eWeapon(| self );|
|00001750| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 72 65 |.. | re|
|00001760| 74 75 72 6e 20 66 61 6c | 73 65 3b 0d 0a 20 20 20 |turn fal|se;.. |
|00001770| 20 20 20 20 20 7d 20 20 | 20 20 20 20 20 20 20 20 | } | |
|00001780| 20 20 0d 0a 20 20 20 20 | 7d 0d 0a 20 20 20 20 65 | .. |}.. e|
|00001790| 6c 73 65 0d 0a 20 20 20 | 20 7b 0d 0a 20 20 20 20 |lse.. | {.. |
|000017a0| 09 69 66 20 28 20 28 46 | 61 76 6f 72 69 74 65 57 |.if ( (F|avoriteW|
|000017b0| 65 61 70 6f 6e 20 21 3d | 20 4e 6f 6e 65 29 20 26 |eapon !=| None) &|
|000017c0| 26 20 28 50 65 6e 64 69 | 6e 67 57 65 61 70 6f 6e |& (Pendi|ngWeapon|
|000017d0| 2e 63 6c 61 73 73 20 21 | 3d 20 46 61 76 6f 72 69 |.class !|= Favori|
|000017e0| 74 65 57 65 61 70 6f 6e | 29 20 29 0d 0a 20 20 20 |teWeapon|) ).. |
|000017f0| 20 09 7b 0d 0a 20 20 20 | 20 09 09 4d 79 46 61 76 | .{.. | ..MyFav|
|00001800| 20 3d 20 46 69 6e 64 49 | 6e 76 65 6e 74 6f 72 79 | = FindI|nventory|
|00001810| 54 79 70 65 28 46 61 76 | 6f 72 69 74 65 57 65 61 |Type(Fav|oriteWea|
|00001820| 70 6f 6e 29 3b 0d 0a 20 | 20 20 20 09 09 69 66 20 |pon);.. | ..if |
|00001830| 28 20 28 4d 79 46 61 76 | 20 21 3d 20 4e 6f 6e 65 |( (MyFav| != None|
|00001840| 29 20 26 26 20 28 57 65 | 61 70 6f 6e 28 4d 79 46 |) && (We|apon(MyF|
|00001850| 61 76 29 2e 52 61 74 65 | 53 65 6c 66 28 66 61 76 |av).Rate|Self(fav|
|00001860| 61 6c 74 29 20 2b 20 30 | 2e 32 32 20 3e 20 50 65 |alt) + 0|.22 > Pe|
|00001870| 6e 64 69 6e 67 57 65 61 | 70 6f 6e 2e 52 61 74 65 |ndingWea|pon.Rate|
|00001880| 53 65 6c 66 28 75 73 65 | 61 6c 74 29 29 20 29 0d |Self(use|alt)) ).|
|00001890| 0a 20 20 20 20 09 09 7b | 0d 0a 20 20 20 20 09 09 |. ..{|.. ..|
|000018a0| 09 75 73 65 61 6c 74 20 | 3d 20 66 61 76 61 6c 74 |.usealt |= favalt|
|000018b0| 3b 0d 0a 20 20 20 20 09 | 09 09 50 65 6e 64 69 6e |;.. .|..Pendin|
|000018c0| 67 57 65 61 70 6f 6e 20 | 3d 20 57 65 61 70 6f 6e |gWeapon |= Weapon|
|000018d0| 28 4d 79 46 61 76 29 3b | 0d 0a 20 20 20 20 09 09 |(MyFav);|.. ..|
|000018e0| 7d 0d 0a 20 20 20 20 09 | 7d 0d 0a 20 20 20 20 7d |}.. .|}.. }|
|000018f0| 0d 0a 0d 0a 2f 2f 6c 6f | 67 28 20 73 65 6c 66 24 |....//lo|g( self$|
|00001900| 22 20 70 72 65 20 73 77 | 61 70 70 69 6e 67 20 22 |" pre sw|apping "|
|00001910| 24 57 65 61 70 6f 6e 24 | 22 20 66 6f 72 20 22 24 |$Weapon$|" for "$|
|00001920| 50 65 6e 64 69 6e 67 57 | 65 61 70 6f 6e 20 29 3b |PendingW|eapon );|
|00001930| 0d 0a 0d 0a 09 69 66 20 | 28 20 57 65 61 70 6f 6e |.....if |( Weapon|
|00001940| 20 3d 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 09 43 68 | == None| )....Ch|
|00001950| 61 6e 67 65 64 57 65 61 | 70 6f 6e 28 29 3b 0d 0a |angedWea|pon();..|
|00001960| 09 65 6c 73 65 20 69 66 | 20 28 20 57 65 61 70 6f |.else if| ( Weapo|
|00001970| 6e 20 21 3d 20 50 65 6e | 64 69 6e 67 57 65 61 70 |n != Pen|dingWeap|
|00001980| 6f 6e 20 29 0d 0a 09 09 | 57 65 61 70 6f 6e 2e 50 |on )....|Weapon.P|
|00001990| 75 74 44 6f 77 6e 28 29 | 3b 0d 0a 0d 0a 2f 2f 6c |utDown()|;....//l|
|000019a0| 6f 67 28 20 73 65 6c 66 | 24 22 20 73 77 61 70 70 |og( self|$" swapp|
|000019b0| 69 6e 67 20 22 24 4f 6c | 64 57 65 61 70 6f 6e 24 |ing "$Ol|dWeapon$|
|000019c0| 22 20 66 6f 72 20 22 24 | 50 65 6e 64 69 6e 67 57 |" for "$|PendingW|
|000019d0| 65 61 70 6f 6e 20 29 3b | 0d 0a 0d 0a 09 72 65 74 |eapon );|.....ret|
|000019e0| 75 72 6e 20 28 75 73 65 | 61 6c 74 20 3e 20 30 29 |urn (use|alt > 0)|
|000019f0| 3b 0d 0a 7d 0d 0a 2a 2f | 0d 0a 0d 0a 66 75 6e 63 |;..}..*/|....func|
|00001a00| 74 69 6f 6e 20 57 68 61 | 74 54 6f 44 6f 4e 65 78 |tion Wha|tToDoNex|
|00001a10| 74 28 6e 61 6d 65 20 4c | 69 6b 65 6c 79 53 74 61 |t(name L|ikelySta|
|00001a20| 74 65 2c 20 6f 70 74 69 | 6f 6e 61 6c 20 6e 61 6d |te, opti|onal nam|
|00001a30| 65 20 4c 69 6b 65 6c 79 | 4c 61 62 65 6c 29 0d 0a |e Likely|Label)..|
|00001a40| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 66 6c 6f 61 74 20 |{...loca|l float |
|00001a50| 66 3b 0d 0a 09 6c 6f 63 | 61 6c 20 53 48 42 61 6c |f;...loc|al SHBal|
|00001a60| 6c 50 69 63 6b 20 62 70 | 3b 0d 0a 0d 0a 2f 2f 4c |lPick bp|;....//L|
|00001a70| 6f 67 28 73 65 6c 66 24 | 22 20 69 6e 20 57 68 61 |og(self$|" in Wha|
|00001a80| 74 54 6f 44 6f 4e 65 78 | 74 28 22 20 24 20 4c 69 |tToDoNex|t(" $ Li|
|00001a90| 6b 65 6c 79 53 74 61 74 | 65 20 24 20 22 2c 22 20 |kelyStat|e $ "," |
|00001aa0| 24 20 4c 69 6b 65 6c 79 | 4c 61 62 65 6c 20 24 20 |$ Likely|Label $ |
|00001ab0| 22 29 22 29 3b 0d 0a 0d | 0a 09 69 66 20 28 48 65 |")");...|..if (He|
|00001ac0| 61 6c 74 68 20 3c 3d 20 | 30 29 0d 0a 09 7b 0d 0a |alth <= |0)...{..|
|00001ad0| 09 09 47 6f 74 6f 53 74 | 61 74 65 28 27 44 79 69 |..GotoSt|ate('Dyi|
|00001ae0| 6e 67 27 29 3b 09 09 09 | 2f 2f 20 3f 3f 3f 0d 0a |ng');...|// ???..|
|00001af0| 09 09 72 65 74 75 72 6e | 3b 0d 0a 09 7d 0d 0a 0d |..return|;...}...|
|00001b00| 0a 09 69 66 20 28 4c 69 | 6b 65 6c 79 53 74 61 74 |..if (Li|kelyStat|
|00001b10| 65 20 3d 3d 20 27 27 29 | 0d 0a 09 09 4c 69 6b 65 |e == '')|....Like|
|00001b20| 6c 79 53 74 61 74 65 20 | 3d 20 27 53 65 65 6b 69 |lyState |= 'Seeki|
|00001b30| 6e 67 27 3b 09 09 2f 2f | 20 64 65 66 61 75 6c 74 |ng';..//| default|
|00001b40| 20 74 6f 20 53 65 65 6b | 69 6e 67 20 73 74 61 74 | to Seek|ing stat|
|00001b50| 65 0d 0a 09 62 46 69 72 | 65 20 3d 20 30 3b 0d 0a |e...bFir|e = 0;..|
|00001b60| 09 62 41 6c 74 46 69 72 | 65 20 3d 20 30 3b 0d 0a |.bAltFir|e = 0;..|
|00001b70| 0d 0a 09 69 66 20 28 53 | 48 42 61 6c 6c 43 6f 75 |...if (S|HBallCou|
|00001b80| 6e 74 28 29 20 3e 20 30 | 29 09 09 2f 2f 46 52 61 |nt() > 0|)..//FRa|
|00001b90| 6e 64 28 29 20 2a 20 28 | 31 2f 53 6b 69 6c 6c 29 |nd() * (|1/Skill)|
|00001ba0| 20 2a 20 34 29 0d 0a 09 | 7b 0d 0a 09 09 2f 2f 54 | * 4)...|{....//T|
|00001bb0| 72 61 63 65 4c 6f 67 28 | 63 6c 61 73 73 2c 20 35 |raceLog(|class, 5|
|00001bc0| 2c 20 22 47 6f 74 20 53 | 48 20 42 61 6c 6c 73 20 |, "Got S|H Balls |
|00001bd0| 74 6f 20 64 65 70 6f 73 | 69 74 2c 20 67 6f 69 6e |to depos|it, goin|
|00001be0| 67 20 74 6f 20 44 65 6c | 69 76 65 72 69 6e 67 20 |g to Del|ivering |
|00001bf0| 73 74 61 74 65 22 29 3b | 0d 0a 09 09 47 6f 74 6f |state");|....Goto|
|00001c00| 53 74 61 74 65 28 27 44 | 65 6c 69 76 65 72 69 6e |State('D|eliverin|
|00001c10| 67 27 29 3b 0d 0a 09 09 | 72 65 74 75 72 6e 3b 0d |g');....|return;.|
|00001c20| 0a 09 7d 0d 0a 0d 0a 2f | 2f 09 45 6e 65 6d 79 20 |..}..../|/.Enemy |
|00001c30| 3d 20 4e 6f 6e 65 3b 0d | 0a 09 69 66 20 28 4f 6c |= None;.|..if (Ol|
|00001c40| 64 45 6e 65 6d 79 20 21 | 3d 20 4e 6f 6e 65 29 0d |dEnemy !|= None).|
|00001c50| 0a 09 7b 0d 0a 09 09 2f | 2f 54 72 61 63 65 4c 6f |..{..../|/TraceLo|
|00001c60| 67 28 63 6c 61 73 73 2c | 20 35 2c 20 22 4f 6c 64 |g(class,| 5, "Old|
|00001c70| 45 6e 65 6d 79 20 3d 20 | 22 20 24 20 4f 6c 64 45 |Enemy = |" $ OldE|
|00001c80| 6e 65 6d 79 20 24 20 22 | 2c 20 67 6f 69 6e 67 20 |nemy $ "|, going |
|00001c90| 74 6f 20 41 74 74 61 63 | 6b 69 6e 67 20 73 74 61 |to Attac|king sta|
|00001ca0| 74 65 22 29 3b 0d 0a 09 | 09 45 6e 65 6d 79 20 3d |te");...|.Enemy =|
|00001cb0| 20 4f 6c 64 45 6e 65 6d | 79 3b 0d 0a 09 09 4f 6c | OldEnem|y;....Ol|
|00001cc0| 64 45 6e 65 6d 79 20 3d | 20 4e 6f 6e 65 3b 0d 0a |dEnemy =| None;..|
|00001cd0| 09 09 47 6f 74 6f 53 74 | 61 74 65 28 27 41 74 74 |..GotoSt|ate('Att|
|00001ce0| 61 63 6b 69 6e 67 27 29 | 3b 0d 0a 09 09 72 65 74 |acking')|;....ret|
|00001cf0| 75 72 6e 3b 0d 0a 09 7d | 0d 0a 0d 0a 09 66 20 3d |urn;...}|.....f =|
|00001d00| 20 46 52 61 6e 64 28 29 | 3b 0d 0a 09 73 77 69 74 | FRand()|;...swit|
|00001d10| 63 68 20 28 4c 69 6b 65 | 6c 79 53 74 61 74 65 29 |ch (Like|lyState)|
|00001d20| 0d 0a 09 7b 0d 0a 09 09 | 63 61 73 65 20 27 41 63 |...{....|case 'Ac|
|00001d30| 71 75 69 73 69 74 69 6f | 6e 27 3a 0d 0a 09 09 09 |quisitio|n':.....|
|00001d40| 69 66 20 28 66 20 3c 20 | 41 67 67 72 65 73 73 69 |if (f < |Aggressi|
|00001d50| 76 65 6e 65 73 73 29 0d | 0a 09 09 09 09 47 6f 74 |veness).|.....Got|
|00001d60| 6f 53 74 61 74 65 28 27 | 41 63 71 75 69 73 69 74 |oState('|Acquisit|
|00001d70| 69 6f 6e 27 29 3b 0d 0a | 09 09 09 65 6c 73 65 0d |ion');..|...else.|
|00001d80| 0a 09 09 09 09 47 6f 74 | 6f 53 74 61 74 65 28 27 |.....Got|oState('|
|00001d90| 53 65 65 6b 69 6e 67 27 | 29 3b 0d 0a 09 09 09 72 |Seeking'|);.....r|
|00001da0| 65 74 75 72 6e 3b 0d 0a | 0d 0a 09 09 63 61 73 65 |eturn;..|....case|
|00001db0| 20 27 41 74 74 61 63 6b | 69 6e 67 27 3a 0d 0a 20 | 'Attack|ing':.. |
|00001dc0| 20 20 20 20 20 20 20 20 | 20 20 20 69 66 20 28 20 | | if ( |
|00001dd0| 62 52 65 61 64 79 54 6f | 41 74 74 61 63 6b 20 29 |bReadyTo|Attack )|
|00001de0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00001df0| 20 20 47 6f 74 6f 53 74 | 61 74 65 28 27 41 74 74 | GotoSt|ate('Att|
|00001e00| 61 63 6b 69 6e 67 27 29 | 3b 0d 0a 20 20 20 20 20 |acking')|;.. |
|00001e10| 20 20 20 20 20 20 20 65 | 6c 73 65 0d 0a 20 20 20 | e|lse.. |
|00001e20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 47 6f 74 | | Got|
|00001e30| 6f 53 74 61 74 65 28 27 | 53 65 65 6b 69 6e 67 27 |oState('|Seeking'|
|00001e40| 29 3b 0d 0a 09 09 09 72 | 65 74 75 72 6e 3b 0d 0a |);.....r|eturn;..|
|00001e50| 0d 0a 09 09 63 61 73 65 | 20 27 52 61 6e 67 65 64 |....case| 'Ranged|
|00001e60| 41 74 74 61 63 6b 27 3a | 0d 0a 09 09 09 69 66 20 |Attack':|.....if |
|00001e70| 28 66 20 3c 20 41 67 67 | 72 65 73 73 69 76 65 6e |(f < Agg|ressiven|
|00001e80| 65 73 73 29 0d 0a 09 09 | 09 09 47 6f 74 6f 53 74 |ess)....|..GotoSt|
|00001e90| 61 74 65 28 27 52 61 6e | 67 65 64 41 74 74 61 63 |ate('Ran|gedAttac|
|00001ea0| 6b 27 29 3b 0d 0a 09 09 | 09 65 6c 73 65 0d 0a 09 |k');....|.else...|
|00001eb0| 09 09 09 47 6f 74 6f 53 | 74 61 74 65 28 27 53 65 |...GotoS|tate('Se|
|00001ec0| 65 6b 69 6e 67 27 29 3b | 0d 0a 09 09 09 72 65 74 |eking');|.....ret|
|00001ed0| 75 72 6e 3b 0d 0a 0d 0a | 09 09 64 65 66 61 75 6c |urn;....|..defaul|
|00001ee0| 74 3a 0d 0a 09 09 09 2f | 2f 20 64 6f 20 6e 6f 74 |t:...../|/ do not|
|00001ef0| 68 69 6e 67 0d 0a 09 09 | 09 62 72 65 61 6b 3b 0d |hing....|.break;.|
|00001f00| 0a 09 7d 0d 0a 0d 0a 09 | 2f 2f 20 61 6e 79 20 53 |..}.....|// any S|
|00001f10| 48 20 62 61 6c 6c 73 20 | 69 6e 20 74 68 65 20 61 |H balls |in the a|
|00001f20| 72 65 61 3f 0d 0a 09 66 | 6f 72 65 61 63 68 20 76 |rea?...f|oreach v|
|00001f30| 69 73 69 62 6c 65 63 6f | 6c 6c 69 64 69 6e 67 61 |isibleco|llidinga|
|00001f40| 63 74 6f 72 73 28 63 6c | 61 73 73 27 53 48 42 61 |ctors(cl|ass'SHBa|
|00001f50| 6c 6c 50 69 63 6b 27 2c | 20 62 70 2c 20 32 20 2a |llPick',| bp, 2 *|
|00001f60| 20 50 69 63 6b 75 70 53 | 69 67 68 74 52 61 64 69 | PickupS|ightRadi|
|00001f70| 75 73 29 0d 0a 09 7b 0d | 0a 09 09 69 66 20 28 62 |us)...{.|...if (b|
|00001f80| 70 2e 49 73 49 6e 53 74 | 61 74 65 28 27 50 69 63 |p.IsInSt|ate('Pic|
|00001f90| 6b 55 70 27 29 29 0d 0a | 09 09 7b 0d 0a 09 09 09 |kUp'))..|..{.....|
|00001fa0| 2f 2f 20 68 75 6e 74 20 | 66 6f 72 20 74 68 65 6d |// hunt |for them|
|00001fb0| 0d 0a 09 09 09 47 6f 74 | 6f 53 74 61 74 65 28 27 |.....Got|oState('|
|00001fc0| 48 75 6e 74 69 6e 67 27 | 29 3b 0d 0a 09 09 09 72 |Hunting'|);.....r|
|00001fd0| 65 74 75 72 6e 3b 0d 0a | 09 09 7d 0d 0a 09 7d 0d |eturn;..|..}...}.|
|00001fe0| 0a 0d 0a 2f 2f 4c 6f 67 | 28 73 65 6c 66 24 22 20 |...//Log|(self$" |
|00001ff0| 57 68 61 74 54 6f 44 6f | 4e 65 78 74 20 64 65 66 |WhatToDo|Next def|
|00002000| 61 75 6c 74 69 6e 67 20 | 73 74 61 74 65 20 74 6f |aulting |state to|
|00002010| 20 22 20 24 20 4c 69 6b | 65 6c 79 53 74 61 74 65 | " $ Lik|elyState|
|00002020| 20 24 20 22 2c 22 20 24 | 20 4c 69 6b 65 6c 79 4c | $ "," $| LikelyL|
|00002030| 61 62 65 6c 29 3b 0d 0a | 09 47 6f 74 6f 53 74 61 |abel);..|.GotoSta|
|00002040| 74 65 28 4c 69 6b 65 6c | 79 53 74 61 74 65 2c 20 |te(Likel|yState, |
|00002050| 4c 69 6b 65 6c 79 4c 61 | 62 65 6c 29 3b 0d 0a 7d |LikelyLa|bel);..}|
|00002060| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 41 63 74 |....func|tion Act|
|00002070| 6f 72 20 46 69 6e 64 4e | 65 61 72 65 73 74 28 63 |or FindN|earest(c|
|00002080| 6c 61 73 73 3c 61 63 74 | 6f 72 3e 20 43 6c 61 73 |lass<act|or> Clas|
|00002090| 73 4e 61 6d 65 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |sName)..|{...loca|
|000020a0| 6c 20 66 6c 6f 61 74 20 | 54 68 69 73 44 69 73 74 |l float |ThisDist|
|000020b0| 2c 20 4e 65 61 72 65 73 | 74 44 69 73 74 3b 0d 0a |, Neares|tDist;..|
|000020c0| 09 6c 6f 63 61 6c 20 41 | 63 74 6f 72 20 54 68 69 |.local A|ctor Thi|
|000020d0| 73 41 63 74 6f 72 2c 20 | 4e 65 61 72 65 73 74 41 |sActor, |NearestA|
|000020e0| 63 74 6f 72 3b 0d 0a 0d | 0a 09 2f 2f 54 72 61 63 |ctor;...|..//Trac|
|000020f0| 65 4c 6f 67 28 63 6c 61 | 73 73 2c 20 31 30 2c 20 |eLog(cla|ss, 10, |
|00002100| 22 69 6e 20 46 69 6e 64 | 4e 65 61 72 65 73 74 28 |"in Find|Nearest(|
|00002110| 22 20 24 20 43 6c 61 73 | 73 4e 61 6d 65 2e 6e 61 |" $ Clas|sName.na|
|00002120| 6d 65 20 24 20 22 29 22 | 29 3b 0d 0a 0d 0a 09 66 |me $ ")"|);.....f|
|00002130| 6f 72 65 61 63 68 20 41 | 6c 6c 41 63 74 6f 72 73 |oreach A|llActors|
|00002140| 28 43 6c 61 73 73 4e 61 | 6d 65 2c 20 54 68 69 73 |(ClassNa|me, This|
|00002150| 41 63 74 6f 72 29 0d 0a | 09 7b 0d 0a 09 09 54 68 |Actor)..|.{....Th|
|00002160| 69 73 44 69 73 74 20 3d | 20 56 53 69 7a 65 28 54 |isDist =| VSize(T|
|00002170| 68 69 73 41 63 74 6f 72 | 2e 4c 6f 63 61 74 69 6f |hisActor|.Locatio|
|00002180| 6e 20 2d 20 4c 6f 63 61 | 74 69 6f 6e 29 3b 0d 0a |n - Loca|tion);..|
|00002190| 09 09 2f 2f 54 72 61 63 | 65 4c 6f 67 28 63 6c 61 |..//Trac|eLog(cla|
|000021a0| 73 73 2c 20 31 30 2c 20 | 22 41 63 74 6f 72 3a 20 |ss, 10, |"Actor: |
|000021b0| 22 20 24 20 54 68 69 73 | 41 63 74 6f 72 20 24 20 |" $ This|Actor $ |
|000021c0| 22 20 44 69 73 74 20 3d | 20 22 20 24 20 54 68 69 |" Dist =| " $ Thi|
|000021d0| 73 44 69 73 74 29 3b 0d | 0a 09 09 69 66 20 28 4e |sDist);.|...if (N|
|000021e0| 65 61 72 65 73 74 44 69 | 73 74 20 3d 3d 20 30 20 |earestDi|st == 0 |
|000021f0| 7c 7c 20 54 68 69 73 44 | 69 73 74 20 3c 20 4e 65 ||| ThisD|ist < Ne|
|00002200| 61 72 65 73 74 44 69 73 | 74 29 0d 0a 09 09 7b 0d |arestDis|t)....{.|
|00002210| 0a 09 09 09 2f 2f 20 61 | 73 73 75 6d 65 20 69 74 |....// a|ssume it|
|00002220| 27 73 20 72 65 61 63 68 | 61 62 6c 65 0d 0a 09 09 |'s reach|able....|
|00002230| 09 4e 65 61 72 65 73 74 | 44 69 73 74 20 3d 20 54 |.Nearest|Dist = T|
|00002240| 68 69 73 44 69 73 74 3b | 0d 0a 09 09 09 4e 65 61 |hisDist;|.....Nea|
|00002250| 72 65 73 74 41 63 74 6f | 72 20 3d 20 54 68 69 73 |restActo|r = This|
|00002260| 41 63 74 6f 72 3b 0d 0a | 09 09 7d 0d 0a 09 7d 09 |Actor;..|..}...}.|
|00002270| 0d 0a 09 72 65 74 75 72 | 6e 20 4e 65 61 72 65 73 |...retur|n Neares|
|00002280| 74 41 63 74 6f 72 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |tActor;.|.}....fu|
|00002290| 6e 63 74 69 6f 6e 20 41 | 63 74 6f 72 20 4c 6f 6f |nction A|ctor Loo|
|000022a0| 6b 46 6f 72 49 6e 76 65 | 6e 74 6f 72 79 28 6f 70 |kForInve|ntory(op|
|000022b0| 74 69 6f 6e 61 6c 20 66 | 6c 6f 61 74 20 4d 61 78 |tional f|loat Max|
|000022c0| 44 69 73 74 29 0d 0a 7b | 0d 0a 09 6c 6f 63 61 6c |Dist)..{|...local|
|000022d0| 20 69 6e 76 65 6e 74 6f | 72 79 20 49 6e 76 2c 20 | invento|ry Inv, |
|000022e0| 42 65 73 74 49 6e 76 2c | 20 4b 6e 6f 77 50 61 74 |BestInv,| KnowPat|
|000022f0| 68 3b 0d 0a 09 6c 6f 63 | 61 6c 20 66 6c 6f 61 74 |h;...loc|al float|
|00002300| 20 42 65 73 74 77 65 69 | 67 68 74 2c 20 4e 65 77 | Bestwei|ght, New|
|00002310| 57 65 69 67 68 74 2c 20 | 44 72 6f 70 70 65 64 44 |Weight, |DroppedD|
|00002320| 69 73 74 3b 0d 0a 09 6c | 6f 63 61 6c 20 61 63 74 |ist;...l|ocal act|
|00002330| 6f 72 20 42 65 73 74 50 | 61 74 68 2c 20 48 69 74 |or BestP|ath, Hit|
|00002340| 41 63 74 6f 72 3b 0d 0a | 09 6c 6f 63 61 6c 20 76 |Actor;..|.local v|
|00002350| 65 63 74 6f 72 20 48 69 | 74 4e 6f 72 6d 61 6c 2c |ector Hi|tNormal,|
|00002360| 20 48 69 74 4c 6f 63 61 | 74 69 6f 6e 3b 0d 0a 09 | HitLoca|tion;...|
|00002370| 6c 6f 63 61 6c 20 64 65 | 63 6f 72 61 74 69 6f 6e |local de|coration|
|00002380| 20 44 65 63 3b 0d 0a 09 | 6c 6f 63 61 6c 20 62 6f | Dec;...|local bo|
|00002390| 6f 6c 20 62 43 61 6e 52 | 65 61 63 68 3b 0d 0a 09 |ol bCanR|each;...|
|000023a0| 6c 6f 63 61 6c 20 4e 61 | 76 69 67 61 74 69 6f 6e |local Na|vigation|
|000023b0| 50 6f 69 6e 74 20 4e 3b | 0d 0a 09 6c 6f 63 61 6c |Point N;|...local|
|000023c0| 20 69 6e 74 20 69 3b 0d | 0a 09 6c 6f 63 61 6c 20 | int i;.|..local |
|000023d0| 41 63 74 6f 72 20 42 65 | 73 74 49 74 65 6d 3b 0d |Actor Be|stItem;.|
|000023e0| 0a 0d 0a 09 69 66 20 28 | 4d 61 78 44 69 73 74 20 |....if (|MaxDist |
|000023f0| 3d 3d 20 30 2e 30 29 09 | 09 09 09 09 09 2f 2f 20 |== 0.0).|.....// |
|00002400| 64 69 64 20 6e 6f 74 20 | 69 6e 63 6c 75 64 65 20 |did not |include |
|00002410| 6f 70 74 69 6f 6e 61 6c | 20 70 61 72 61 6d 65 74 |optional| paramet|
|00002420| 65 72 3f 0d 0a 09 09 4d | 61 78 44 69 73 74 20 3d |er?....M|axDist =|
|00002430| 20 50 69 63 6b 75 70 53 | 69 67 68 74 52 61 64 69 | PickupS|ightRadi|
|00002440| 75 73 3b 09 09 2f 2f 20 | 75 73 65 20 64 65 66 61 |us;..// |use defa|
|00002450| 75 6c 74 20 66 72 6f 6d | 20 70 72 6f 70 65 72 74 |ult from| propert|
|00002460| 79 0d 0a 0d 0a 09 2f 2f | 54 72 61 63 65 4c 6f 67 |y.....//|TraceLog|
|00002470| 28 63 6c 61 73 73 2c 20 | 31 30 2c 20 22 69 6e 20 |(class, |10, "in |
|00002480| 4c 6f 6f 6b 46 6f 72 49 | 6e 76 65 6e 74 6f 72 79 |LookForI|nventory|
|00002490| 28 22 20 24 20 4d 61 78 | 44 69 73 74 20 24 20 22 |(" $ Max|Dist $ "|
|000024a0| 29 22 29 3b 0d 0a 0d 0a | 09 2f 2f 20 6c 6f 6f 6b |)");....|.// look|
|000024b0| 20 66 6f 72 20 65 6e 65 | 6d 79 2d 64 72 6f 70 70 | for ene|my-dropp|
|000024c0| 65 64 20 69 74 65 6d 73 | 0d 0a 09 69 66 20 28 28 |ed items|...if ((|
|000024d0| 45 6e 65 6d 79 44 72 6f | 70 70 65 64 20 21 3d 20 |EnemyDro|pped != |
|000024e0| 4e 6f 6e 65 29 20 26 26 | 20 21 45 6e 65 6d 79 44 |None) &&| !EnemyD|
|000024f0| 72 6f 70 70 65 64 2e 62 | 44 65 6c 65 74 65 4d 65 |ropped.b|DeleteMe|
|00002500| 20 0d 0a 09 09 26 26 20 | 28 45 6e 65 6d 79 44 72 | ....&& |(EnemyDr|
|00002510| 6f 70 70 65 64 2e 4f 77 | 6e 65 72 20 3d 3d 20 4e |opped.Ow|ner == N|
|00002520| 6f 6e 65 29 29 0d 0a 09 | 7b 0d 0a 09 09 44 72 6f |one))...|{....Dro|
|00002530| 70 70 65 64 44 69 73 74 | 20 3d 20 56 53 69 7a 65 |ppedDist| = VSize|
|00002540| 28 45 6e 65 6d 79 44 72 | 6f 70 70 65 64 2e 4c 6f |(EnemyDr|opped.Lo|
|00002550| 63 61 74 69 6f 6e 20 2d | 20 4c 6f 63 61 74 69 6f |cation -| Locatio|
|00002560| 6e 29 3b 0d 0a 09 09 69 | 66 20 28 28 44 72 6f 70 |n);....i|f ((Drop|
|00002570| 70 65 64 44 69 73 74 20 | 3c 20 4d 61 78 44 69 73 |pedDist |< MaxDis|
|00002580| 74 2b 32 30 30 29 20 26 | 26 20 41 63 74 6f 72 52 |t+200) &|& ActorR|
|00002590| 65 61 63 68 61 62 6c 65 | 28 45 6e 65 6d 79 44 72 |eachable|(EnemyDr|
|000025a0| 6f 70 70 65 64 29 29 0d | 0a 09 09 7b 0d 0a 09 09 |opped)).|...{....|
|000025b0| 09 42 65 73 74 57 65 69 | 67 68 74 20 3d 20 45 6e |.BestWei|ght = En|
|000025c0| 65 6d 79 44 72 6f 70 70 | 65 64 2e 42 6f 74 44 65 |emyDropp|ed.BotDe|
|000025d0| 73 69 72 65 61 62 69 6c | 69 74 79 28 73 65 6c 66 |sireabil|ity(self|
|000025e0| 29 3b 20 09 09 0d 0a 09 | 09 09 69 66 20 28 42 65 |); .....|..if (Be|
|000025f0| 73 74 57 65 69 67 68 74 | 20 3e 20 30 2e 34 29 0d |stWeight| > 0.4).|
|00002600| 0a 09 09 09 7b 0d 0a 09 | 09 09 09 42 65 73 74 49 |....{...|...BestI|
|00002610| 74 65 6d 20 3d 20 45 6e | 65 6d 79 44 72 6f 70 70 |tem = En|emyDropp|
|00002620| 65 64 3b 0d 0a 09 09 09 | 09 45 6e 65 6d 79 44 72 |ed;.....|.EnemyDr|
|00002630| 6f 70 70 65 64 20 3d 20 | 4e 6f 6e 65 3b 0d 0a 09 |opped = |None;...|
|00002640| 09 09 09 2f 2f 54 72 61 | 63 65 4c 6f 67 28 63 6c |...//Tra|ceLog(cl|
|00002650| 61 73 73 2c 20 31 30 2c | 20 22 66 6f 75 6e 64 20 |ass, 10,| "found |
|00002660| 45 6e 65 6d 79 44 72 6f | 70 3a 20 22 20 24 20 42 |EnemyDro|p: " $ B|
|00002670| 65 73 74 49 74 65 6d 29 | 3b 0d 0a 09 09 09 09 72 |estItem)|;......r|
|00002680| 65 74 75 72 6e 20 28 42 | 65 73 74 49 74 65 6d 29 |eturn (B|estItem)|
|00002690| 3b 20 0d 0a 09 09 09 7d | 0d 0a 09 09 09 42 65 73 |; .....}|.....Bes|
|000026a0| 74 49 6e 76 20 3d 20 45 | 6e 65 6d 79 44 72 6f 70 |tInv = E|nemyDrop|
|000026b0| 70 65 64 3b 0d 0a 09 09 | 09 42 65 73 74 57 65 69 |ped;....|.BestWei|
|000026c0| 67 68 74 20 3d 20 42 65 | 73 74 57 65 69 67 68 74 |ght = Be|stWeight|
|000026d0| 2f 44 72 6f 70 70 65 64 | 44 69 73 74 3b 0d 0a 09 |/Dropped|Dist;...|
|000026e0| 09 09 4b 6e 6f 77 50 61 | 74 68 20 3d 20 42 65 73 |..KnowPa|th = Bes|
|000026f0| 74 49 6e 76 3b 0d 0a 09 | 09 7d 09 0d 0a 09 09 65 |tInv;...|.}.....e|
|00002700| 6c 73 65 0d 0a 09 09 09 | 42 65 73 74 57 65 69 67 |lse.....|BestWeig|
|00002710| 68 74 20 3d 20 30 3b 0d | 0a 09 7d 09 0d 0a 09 65 |ht = 0;.|..}....e|
|00002720| 6c 73 65 0d 0a 09 09 42 | 65 73 74 57 65 69 67 68 |lse....B|estWeigh|
|00002730| 74 20 3d 20 30 3b 0d 0a | 0d 0a 09 45 6e 65 6d 79 |t = 0;..|...Enemy|
|00002740| 44 72 6f 70 70 65 64 20 | 3d 20 4e 6f 6e 65 3b 0d |Dropped |= None;.|
|00002750| 0a 09 09 09 09 09 09 09 | 09 0d 0a 09 2f 2f 66 69 |........|....//fi|
|00002760| 72 73 74 20 6c 6f 6f 6b | 20 61 74 20 6e 65 61 72 |rst look| at near|
|00002770| 62 79 20 69 6e 76 65 6e | 74 6f 72 79 20 3c 20 4d |by inven|tory < M|
|00002780| 61 78 44 69 73 74 20 64 | 69 73 74 61 6e 63 65 0d |axDist d|istance.|
|00002790| 0a 09 66 6f 72 65 61 63 | 68 20 76 69 73 69 62 6c |..foreac|h visibl|
|000027a0| 65 63 6f 6c 6c 69 64 69 | 6e 67 61 63 74 6f 72 73 |ecollidi|ngactors|
|000027b0| 28 63 6c 61 73 73 27 49 | 6e 76 65 6e 74 6f 72 79 |(class'I|nventory|
|000027c0| 27 2c 20 49 6e 76 2c 20 | 4d 61 78 44 69 73 74 29 |', Inv, |MaxDist)|
|000027d0| 0d 0a 09 7b 0d 0a 09 09 | 69 66 20 28 28 49 6e 76 |...{....|if ((Inv|
|000027e0| 2e 49 73 49 6e 53 74 61 | 74 65 28 27 50 69 63 6b |.IsInSta|te('Pick|
|000027f0| 55 70 27 29 29 20 26 26 | 20 28 49 6e 76 2e 4d 61 |Up')) &&| (Inv.Ma|
|00002800| 78 44 65 73 69 72 65 61 | 62 69 6c 69 74 79 2f 35 |xDesirea|bility/5|
|00002810| 30 20 3e 20 42 65 73 74 | 57 65 69 67 68 74 29 0d |0 > Best|Weight).|
|00002820| 0a 09 09 09 26 26 20 28 | 49 6e 76 2e 4c 6f 63 61 |....&& (|Inv.Loca|
|00002830| 74 69 6f 6e 2e 5a 20 3c | 20 4c 6f 63 61 74 69 6f |tion.Z <| Locatio|
|00002840| 6e 2e 5a 20 2b 20 4d 61 | 78 53 74 65 70 48 65 69 |n.Z + Ma|xStepHei|
|00002850| 67 68 74 20 2b 20 43 6f | 6c 6c 69 73 69 6f 6e 48 |ght + Co|llisionH|
|00002860| 65 69 67 68 74 29 29 0d | 0a 09 09 7b 0d 0a 09 09 |eight)).|...{....|
|00002870| 09 4e 65 77 57 65 69 67 | 68 74 20 3d 20 69 6e 76 |.NewWeig|ht = inv|
|00002880| 2e 42 6f 74 44 65 73 69 | 72 65 61 62 69 6c 69 74 |.BotDesi|reabilit|
|00002890| 79 28 73 65 6c 66 29 2f | 56 53 69 7a 65 28 49 6e |y(self)/|VSize(In|
|000028a0| 76 2e 4c 6f 63 61 74 69 | 6f 6e 20 2d 20 4c 6f 63 |v.Locati|on - Loc|
|000028b0| 61 74 69 6f 6e 29 3b 0d | 0a 09 09 09 2f 2f 20 6c |ation);.|....// l|
|000028c0| 6f 67 28 22 6c 6f 6f 6b | 69 6e 67 20 61 74 20 6c |og("look|ing at l|
|000028d0| 6f 63 61 6c 20 22 24 49 | 6e 76 24 22 20 77 65 69 |ocal "$I|nv$" wei|
|000028e0| 67 68 74 20 22 24 31 30 | 30 30 30 30 2a 4e 65 77 |ght "$10|0000*New|
|000028f0| 57 65 69 67 68 74 29 3b | 0d 0a 09 09 09 69 66 20 |Weight);|.....if |
|00002900| 28 4e 65 77 57 65 69 67 | 68 74 20 3e 20 42 65 73 |(NewWeig|ht > Bes|
|00002910| 74 57 65 69 67 68 74 29 | 0d 0a 09 09 09 7b 0d 0a |tWeight)|.....{..|
|00002920| 09 09 09 09 42 65 73 74 | 57 65 69 67 68 74 20 3d |....Best|Weight =|
|00002930| 20 4e 65 77 57 65 69 67 | 68 74 3b 0d 0a 09 09 09 | NewWeig|ht;.....|
|00002940| 09 42 65 73 74 49 6e 76 | 20 3d 20 49 6e 76 3b 0d |.BestInv| = Inv;.|
|00002950| 0a 09 09 09 7d 0d 0a 09 | 09 7d 0d 0a 09 7d 0d 0a |....}...|.}...}..|
|00002960| 0d 0a 09 69 66 20 28 42 | 65 73 74 49 6e 76 20 21 |...if (B|estInv !|
|00002970| 3d 20 4e 6f 6e 65 29 0d | 0a 09 7b 0d 0a 09 09 62 |= None).|..{....b|
|00002980| 43 61 6e 4a 75 6d 70 20 | 3d 20 28 42 65 73 74 49 |CanJump |= (BestI|
|00002990| 6e 76 2e 4c 6f 63 61 74 | 69 6f 6e 2e 5a 20 3e 20 |nv.Locat|ion.Z > |
|000029a0| 4c 6f 63 61 74 69 6f 6e | 2e 5a 20 2d 20 43 6f 6c |Location|.Z - Col|
|000029b0| 6c 69 73 69 6f 6e 48 65 | 69 67 68 74 20 2d 20 4d |lisionHe|ight - M|
|000029c0| 61 78 53 74 65 70 48 65 | 69 67 68 74 29 3b 0d 0a |axStepHe|ight);..|
|000029d0| 09 09 62 43 61 6e 52 65 | 61 63 68 20 3d 20 41 63 |..bCanRe|ach = Ac|
|000029e0| 74 6f 72 52 65 61 63 68 | 61 62 6c 65 28 42 65 73 |torReach|able(Bes|
|000029f0| 74 49 6e 76 29 3b 0d 0a | 09 7d 0d 0a 09 65 6c 73 |tInv);..|.}...els|
|00002a00| 65 0d 0a 09 09 62 43 61 | 6e 52 65 61 63 68 20 3d |e....bCa|nReach =|
|00002a10| 20 66 61 6c 73 65 3b 0d | 0a 09 62 43 61 6e 4a 75 | false;.|..bCanJu|
|00002a20| 6d 70 20 3d 20 74 72 75 | 65 3b 0d 0a 09 69 66 20 |mp = tru|e;...if |
|00002a30| 28 62 43 61 6e 52 65 61 | 63 68 29 0d 0a 09 7b 0d |(bCanRea|ch)...{.|
|00002a40| 0a 09 09 2f 2f 54 72 61 | 63 65 4c 6f 67 28 63 6c |...//Tra|ceLog(cl|
|00002a50| 61 73 73 2c 20 35 2c 20 | 22 46 6f 75 6e 64 20 62 |ass, 5, |"Found b|
|00002a60| 65 73 74 20 72 65 61 63 | 68 61 62 6c 65 20 69 6e |est reac|hable in|
|00002a70| 76 65 6e 74 6f 72 79 3a | 20 22 20 24 20 42 65 73 |ventory:| " $ Bes|
|00002a80| 74 49 6e 76 29 3b 0d 0a | 09 09 72 65 74 75 72 6e |tInv);..|..return|
|00002a90| 20 42 65 73 74 49 6e 76 | 3b 0d 0a 09 7d 0d 0a 09 | BestInv|;...}...|
|00002aa0| 65 6c 73 65 20 69 66 20 | 28 4b 6e 6f 77 50 61 74 |else if |(KnowPat|
|00002ab0| 68 20 21 3d 20 4e 6f 6e | 65 29 0d 0a 09 7b 0d 0a |h != Non|e)...{..|
|00002ac0| 09 09 2f 2f 54 72 61 63 | 65 4c 6f 67 28 63 6c 61 |..//Trac|eLog(cla|
|00002ad0| 73 73 2c 20 31 30 2c 20 | 22 46 6f 75 6e 64 20 4b |ss, 10, |"Found K|
|00002ae0| 6e 6f 77 50 61 74 68 3a | 20 22 20 24 20 4b 6e 6f |nowPath:| " $ Kno|
|00002af0| 77 50 61 74 68 29 3b 0d | 0a 09 09 72 65 74 75 72 |wPath);.|...retur|
|00002b00| 6e 20 4b 6e 6f 77 50 61 | 74 68 3b 0d 0a 09 7d 0d |n KnowPa|th;...}.|
|00002b10| 0a 0d 0a 09 2f 2f 20 6e | 6f 74 68 69 6e 67 20 66 |....// n|othing f|
|00002b20| 6f 75 6e 64 0d 0a 09 2f | 2f 54 72 61 63 65 4c 6f |ound.../|/TraceLo|
|00002b30| 67 28 63 6c 61 73 73 2c | 20 31 30 2c 20 22 4e 6f |g(class,| 10, "No|
|00002b40| 20 6e 65 61 72 62 79 20 | 69 6e 76 65 6e 74 6f 72 | nearby |inventor|
|00002b50| 79 20 66 6f 75 6e 64 22 | 29 3b 0d 0a 09 72 65 74 |y found"|);...ret|
|00002b60| 75 72 6e 20 4e 6f 6e 65 | 3b 0d 0a 7d 0d 0a 0d 0a |urn None|;..}....|
|00002b70| 66 75 6e 63 74 69 6f 6e | 20 65 41 74 74 69 74 75 |function| eAttitu|
|00002b80| 64 65 20 41 74 74 69 74 | 75 64 65 54 6f 28 50 61 |de Attit|udeTo(Pa|
|00002b90| 77 6e 20 4f 74 68 65 72 | 29 0d 0a 7b 0d 0a 09 2f |wn Other|)..{.../|
|00002ba0| 2f 54 72 61 63 65 4c 6f | 67 28 63 6c 61 73 73 2c |/TraceLo|g(class,|
|00002bb0| 20 31 30 2c 20 22 69 6e | 20 41 74 74 69 74 75 64 | 10, "in| Attitud|
|00002bc0| 65 54 6f 28 22 20 24 20 | 4f 74 68 65 72 2e 6e 61 |eTo(" $ |Other.na|
|00002bd0| 6d 65 20 24 20 22 29 22 | 29 3b 0d 0a 0d 0a 09 2f |me $ ")"|);...../|
|00002be0| 2f 20 67 69 76 65 20 62 | 6f 74 20 61 6e 20 61 74 |/ give b|ot an at|
|00002bf0| 74 69 74 75 64 65 20 61 | 64 6a 75 73 74 6d 65 6e |titude a|djustmen|
|00002c00| 74 0d 0a 0d 0a 0d 0a 20 | 20 20 20 69 66 20 28 20 |t...... | if ( |
|00002c10| 4c 65 76 65 6c 2e 47 61 | 6d 65 2e 49 73 41 28 27 |Level.Ga|me.IsA('|
|00002c20| 53 48 54 72 61 69 6e 69 | 6e 67 27 29 20 29 0d 0a |SHTraini|ng') )..|
|00002c30| 20 20 20 20 20 20 20 20 | 72 65 74 75 72 6e 20 41 | |return A|
|00002c40| 54 54 49 54 55 44 45 5f | 49 67 6e 6f 72 65 3b 0d |TTITUDE_|Ignore;.|
|00002c50| 0a 0d 0a 0d 0a 09 69 66 | 20 28 4c 65 76 65 6c 2e |......if| (Level.|
|00002c60| 47 61 6d 65 2e 62 54 65 | 61 6d 47 61 6d 65 20 26 |Game.bTe|amGame &|
|00002c70| 26 20 28 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |& (Playe|rReplica|
|00002c80| 74 69 6f 6e 49 6e 66 6f | 2e 54 65 61 6d 20 3d 3d |tionInfo|.Team ==|
|00002c90| 20 4f 74 68 65 72 2e 50 | 6c 61 79 65 72 52 65 70 | Other.P|layerRep|
|00002ca0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 54 65 61 |lication|Info.Tea|
|00002cb0| 6d 29 29 0d 0a 09 7b 0d | 0a 09 09 2f 2f 54 72 61 |m))...{.|...//Tra|
|00002cc0| 63 65 4c 6f 67 28 63 6c | 61 73 73 2c 20 31 30 2c |ceLog(cl|ass, 10,|
|00002cd0| 22 4f 74 68 65 72 20 69 | 73 20 61 20 74 65 61 6d |"Other i|s a team|
|00002ce0| 6d 61 74 65 2c 20 41 74 | 74 69 74 75 64 65 54 6f |mate, At|titudeTo|
|00002cf0| 20 72 65 74 75 72 6e 69 | 6e 67 20 41 54 54 49 54 | returni|ng ATTIT|
|00002d00| 55 44 45 5f 46 72 69 65 | 6e 64 6c 79 22 29 3b 0d |UDE_Frie|ndly");.|
|00002d10| 0a 09 09 72 65 74 75 72 | 6e 20 41 54 54 49 54 55 |...retur|n ATTITU|
|00002d20| 44 45 5f 46 72 69 65 6e | 64 6c 79 3b 09 2f 2f 20 |DE_Frien|dly;.// |
|00002d30| 74 65 61 6d 6d 61 74 65 | 0d 0a 09 7d 0d 0a 0d 0a |teammate|...}....|
|00002d40| 09 69 66 20 28 28 4f 74 | 68 65 72 20 3d 3d 20 4c |.if ((Ot|her == L|
|00002d50| 61 73 74 48 69 74 42 79 | 29 20 26 26 20 28 4c 65 |astHitBy|) && (Le|
|00002d60| 76 65 6c 2e 54 69 6d 65 | 53 65 63 6f 6e 64 73 20 |vel.Time|Seconds |
|00002d70| 2d 20 4c 61 73 74 48 69 | 74 54 69 6d 65 20 3c 20 |- LastHi|tTime < |
|00002d80| 35 29 29 0d 0a 09 7b 0d | 0a 09 09 2f 2f 54 72 61 |5))...{.|...//Tra|
|00002d90| 63 65 4c 6f 67 28 63 6c | 61 73 73 2c 20 31 30 2c |ceLog(cl|ass, 10,|
|00002da0| 20 22 62 6f 74 20 77 61 | 73 20 68 69 74 20 72 65 | "bot wa|s hit re|
|00002db0| 63 65 6e 74 6c 79 20 62 | 79 20 70 61 77 6e 22 29 |cently b|y pawn")|
|00002dc0| 3b 0d 0a 09 09 69 66 20 | 28 61 67 67 72 65 73 73 |;....if |(aggress|
|00002dd0| 69 76 65 6e 65 73 73 20 | 2b 20 28 46 52 61 6e 64 |iveness |+ (FRand|
|00002de0| 28 29 20 2a 20 30 2e 32 | 35 29 20 3e 20 72 65 6c |() * 0.2|5) > rel|
|00002df0| 61 74 69 76 65 73 74 72 | 65 6e 67 74 68 28 4f 74 |ativestr|ength(Ot|
|00002e00| 68 65 72 29 29 0d 0a 09 | 09 7b 0d 0a 09 09 09 2f |her))...|.{...../|
|00002e10| 2f 54 72 61 63 65 4c 6f | 67 28 63 6c 61 73 73 2c |/TraceLo|g(class,|
|00002e20| 20 31 30 2c 20 22 41 74 | 74 69 74 75 64 65 54 6f | 10, "At|titudeTo|
|00002e30| 20 72 65 74 75 72 6e 69 | 6e 67 20 41 54 54 49 54 | returni|ng ATTIT|
|00002e40| 55 44 45 5f 48 61 74 65 | 22 29 3b 0d 0a 09 09 09 |UDE_Hate|");.....|
|00002e50| 72 65 74 75 72 6e 20 41 | 54 54 49 54 55 44 45 5f |return A|TTITUDE_|
|00002e60| 48 61 74 65 3b 0d 0a 09 | 09 7d 0d 0a 09 09 65 6c |Hate;...|.}....el|
|00002e70| 73 65 0d 0a 09 09 7b 0d | 0a 09 09 09 2f 2f 54 72 |se....{.|....//Tr|
|00002e80| 61 63 65 4c 6f 67 28 63 | 6c 61 73 73 2c 20 31 30 |aceLog(c|lass, 10|
|00002e90| 2c 20 22 41 74 74 69 74 | 75 64 65 54 6f 20 72 65 |, "Attit|udeTo re|
|00002ea0| 74 75 72 6e 69 6e 67 20 | 41 54 54 49 54 55 44 45 |turning |ATTITUDE|
|00002eb0| 5f 48 61 74 65 22 29 3b | 0d 0a 09 09 09 72 65 74 |_Hate");|.....ret|
|00002ec0| 75 72 6e 20 41 54 54 49 | 54 55 44 45 5f 46 65 61 |urn ATTI|TUDE_Fea|
|00002ed0| 72 3b 0d 0a 09 09 7d 0d | 0a 09 7d 0d 0a 0d 0a 09 |r;....}.|..}.....|
|00002ee0| 69 66 20 28 46 52 61 6e | 64 28 29 20 3c 20 41 67 |if (FRan|d() < Ag|
|00002ef0| 67 72 65 73 73 69 76 65 | 6e 65 73 73 29 09 2f 2f |gressive|ness).//|
|00002f00| 20 30 2e 31 35 29 09 09 | 2f 2f 20 30 2e 35 20 2b | 0.15)..|// 0.5 +|
|00002f10| 20 30 2e 31 37 20 2a 20 | 73 6b 69 6c 6c 3f 3f 3f | 0.17 * |skill???|
|00002f20| 0d 0a 09 7b 0d 0a 09 09 | 2f 2f 54 72 61 63 65 4c |...{....|//TraceL|
|00002f30| 6f 67 28 63 6c 61 73 73 | 2c 20 31 30 2c 20 22 41 |og(class|, 10, "A|
|00002f40| 74 74 69 74 75 64 65 54 | 6f 20 52 65 74 75 72 6e |ttitudeT|o Return|
|00002f50| 69 6e 67 20 41 54 54 49 | 54 55 44 45 5f 46 72 69 |ing ATTI|TUDE_Fri|
|00002f60| 65 6e 64 6c 79 22 29 3b | 0d 0a 2f 2f 20 09 09 72 |endly");|..// ..r|
|00002f70| 65 74 75 72 6e 20 41 54 | 54 49 54 55 44 45 5f 46 |eturn AT|TITUDE_F|
|00002f80| 72 69 65 6e 64 6c 79 3b | 0d 0a 09 09 72 65 74 75 |riendly;|....retu|
|00002f90| 72 6e 20 41 54 54 49 54 | 55 44 45 5f 48 61 74 65 |rn ATTIT|UDE_Hate|
|00002fa0| 3b 0d 0a 09 7d 0d 0a 09 | 65 6c 73 65 0d 0a 09 7b |;...}...|else...{|
|00002fb0| 0d 0a 09 09 2f 2f 54 72 | 61 63 65 4c 6f 67 28 63 |....//Tr|aceLog(c|
|00002fc0| 6c 61 73 73 2c 20 31 30 | 2c 20 22 41 74 74 69 74 |lass, 10|, "Attit|
|00002fd0| 75 64 65 54 6f 20 52 65 | 74 75 72 6e 69 6e 67 20 |udeTo Re|turning |
|00002fe0| 41 54 54 49 54 55 44 45 | 5f 48 61 74 65 22 29 3b |ATTITUDE|_Hate");|
|00002ff0| 0d 0a 09 09 72 65 74 75 | 72 6e 20 41 54 54 49 54 |....retu|rn ATTIT|
|00003000| 55 44 45 5f 48 61 74 65 | 3b 0d 0a 09 7d 0d 0a 7d |UDE_Hate|;...}..}|
|00003010| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 45 6e 65 |....func|tion Ene|
|00003020| 6d 79 41 63 71 75 69 72 | 65 64 28 29 0d 0a 7b 0d |myAcquir|ed()..{.|
|00003030| 0a 09 2f 2f 54 72 61 63 | 65 4c 6f 67 28 63 6c 61 |..//Trac|eLog(cla|
|00003040| 73 73 2c 20 31 30 2c 20 | 22 69 6e 20 45 6e 65 6d |ss, 10, |"in Enem|
|00003050| 79 41 63 71 75 69 72 65 | 64 28 29 22 29 3b 0d 0a |yAcquire|d()");..|
|00003060| 0d 0a 09 57 68 61 74 54 | 6f 44 6f 4e 65 78 74 28 |...WhatT|oDoNext(|
|00003070| 27 41 63 71 75 69 73 69 | 74 69 6f 6e 27 29 3b 0d |'Acquisi|tion');.|
|00003080| 0a 7d 0d 0a 0d 0a 2f 2a | 0d 0a 2f 2f 20 41 64 64 |.}..../*|..// Add|
|00003090| 49 6e 76 65 6e 74 6f 72 | 79 28 29 0d 0a 2f 2f 0d |Inventor|y()..//.|
|000030a0| 0a 2f 2f 20 63 61 6c 6c | 65 64 20 77 68 65 6e 20 |.// call|ed when |
|000030b0| 62 6f 74 20 69 73 20 61 | 62 6f 75 74 20 74 6f 20 |bot is a|bout to |
|000030c0| 67 72 61 62 20 61 20 67 | 61 6d 65 20 6c 65 76 65 |grab a g|ame leve|
|000030d0| 6c 20 70 69 63 6b 75 70 | 0d 0a 2f 2f 20 72 65 74 |l pickup|..// ret|
|000030e0| 75 72 6e 20 74 72 75 65 | 20 69 66 20 70 69 63 6b |urn true| if pick|
|000030f0| 65 64 20 75 70 0d 0a 2f | 2f 0d 0a 66 75 6e 63 74 |ed up../|/..funct|
|00003100| 69 6f 6e 20 62 6f 6f 6c | 20 41 64 64 49 6e 76 65 |ion bool| AddInve|
|00003110| 6e 74 6f 72 79 28 69 6e | 76 65 6e 74 6f 72 79 20 |ntory(in|ventory |
|00003120| 4e 65 77 49 74 65 6d 29 | 0d 0a 7b 0d 0a 09 2f 2f |NewItem)|..{...//|
|00003130| 54 72 61 63 65 4c 6f 67 | 28 63 6c 61 73 73 2c 20 |TraceLog|(class, |
|00003140| 31 30 2c 20 22 69 6e 20 | 41 64 64 49 6e 76 65 6e |10, "in |AddInven|
|00003150| 74 6f 72 79 28 22 20 24 | 20 4e 65 77 49 74 65 6d |tory(" $| NewItem|
|00003160| 2e 6e 61 6d 65 20 24 20 | 22 29 22 29 3b 0d 0a 0d |.name $ |")");...|
|00003170| 0a 09 69 66 20 28 21 53 | 75 70 65 72 2e 41 64 64 |..if (!S|uper.Add|
|00003180| 49 6e 76 65 6e 74 6f 72 | 79 28 4e 65 77 49 74 65 |Inventor|y(NewIte|
|00003190| 6d 29 29 0d 0a 09 09 72 | 65 74 75 72 6e 20 66 61 |m))....r|eturn fa|
|000031a0| 6c 73 65 3b 0d 0a 0d 0a | 09 57 68 61 74 54 6f 44 |lse;....|.WhatToD|
|000031b0| 6f 4e 65 78 74 28 27 27 | 2c 20 27 27 29 3b 0d 0a |oNext(''|, '');..|
|000031c0| 0d 0a 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|000031d0| 0a 7d 0d 0a 2a 2f 0d 0a | 0d 0a 66 75 6e 63 74 69 |.}..*/..|..functi|
|000031e0| 6f 6e 20 69 6e 74 20 53 | 48 42 61 6c 6c 43 6f 75 |on int S|HBallCou|
|000031f0| 6e 74 28 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |nt()..{.|..local |
|00003200| 69 6e 74 20 69 2c 20 42 | 61 6c 6c 43 6f 75 6e 74 |int i, B|allCount|
|00003210| 3b 0d 0a 0d 0a 09 42 61 | 6c 6c 43 6f 75 6e 74 20 |;.....Ba|llCount |
|00003220| 3d 20 30 3b 0d 0a 09 66 | 6f 72 20 28 69 20 3d 20 |= 0;...f|or (i = |
|00003230| 31 3b 20 69 20 3c 20 38 | 3b 20 69 2b 2b 29 0d 0a |1; i < 8|; i++)..|
|00003240| 09 09 69 66 20 28 49 73 | 48 6f 6c 64 69 6e 67 42 |..if (Is|HoldingB|
|00003250| 61 6c 6c 28 69 29 29 0d | 0a 09 09 09 42 61 6c 6c |all(i)).|....Ball|
|00003260| 43 6f 75 6e 74 2b 2b 3b | 0d 0a 0d 0a 09 72 65 74 |Count++;|.....ret|
|00003270| 75 72 6e 20 42 61 6c 6c | 43 6f 75 6e 74 3b 0d 0a |urn Ball|Count;..|
|00003280| 7d 0d 0a 0d 0a 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |}....///|////////|
|00003290| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000032a0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000032b0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000032c0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 0d 0a 2f |////////|/////../|
|000032d0| 2f 42 61 73 65 20 4d 6f | 6e 73 74 65 72 20 41 49 |/Base Mo|nster AI|
|000032e0| 0d 0a 0d 0a 2f 2f 20 44 | 53 4c 20 3d 20 6d 70 20 |....// D|SL = mp |
|000032f0| 73 79 6e 63 68 0d 0a 61 | 75 74 6f 20 73 74 61 74 |synch..a|uto stat|
|00003300| 65 20 53 74 61 72 74 55 | 70 0d 0a 7b 0d 0a 09 66 |e StartU|p..{...f|
|00003310| 75 6e 63 74 69 6f 6e 20 | 42 65 67 69 6e 53 74 61 |unction |BeginSta|
|00003320| 74 65 28 29 0d 0a 09 7b | 0d 0a 09 09 53 65 74 4d |te()...{|....SetM|
|00003330| 6f 76 65 6d 65 6e 74 50 | 68 79 73 69 63 73 28 29 |ovementP|hysics()|
|00003340| 3b 20 0d 0a 09 09 53 65 | 74 50 68 79 73 69 63 73 |; ....Se|tPhysics|
|00003350| 28 50 48 59 53 5f 46 61 | 6c 6c 69 6e 67 29 3b 0d |(PHYS_Fa|lling);.|
|00003360| 0a 09 7d 0d 0a 0d 0a 42 | 65 67 69 6e 3a 0d 0a 2f |..}....B|egin:../|
|00003370| 2f 6c 6f 67 28 20 73 65 | 6c 66 24 22 20 61 75 74 |/log( se|lf$" aut|
|00003380| 6f 20 73 74 61 72 74 75 | 70 20 62 65 67 69 6e 22 |o startu|p begin"|
|00003390| 20 29 3b 20 20 20 20 2f | 2f 20 39 39 39 39 0d 0a | ); /|/ 9999..|
|000033a0| 20 20 20 20 4c 6f 6f 70 | 41 6e 69 6d 28 27 57 61 | Loop|Anim('Wa|
|000033b0| 72 6d 55 70 27 29 3b 0d | 0a 20 20 20 66 6f 72 65 |rmUp');.|. fore|
|000033c0| 61 63 68 20 41 6c 6c 41 | 63 74 6f 72 73 28 63 6c |ach AllA|ctors(cl|
|000033d0| 61 73 73 27 53 74 61 72 | 74 47 75 6e 27 2c 20 73 |ass'Star|tGun', s|
|000033e0| 67 20 29 0d 0a 20 20 20 | 20 20 20 20 20 62 72 65 |g ).. | bre|
|000033f0| 61 6b 3b 0d 0a 20 20 20 | 20 69 66 20 28 20 73 67 |ak;.. | if ( sg|
|00003400| 20 3d 3d 20 4e 6f 6e 65 | 20 29 20 20 20 20 20 20 | == None| ) |
|00003410| 20 20 20 20 20 20 20 20 | 20 2f 2f 20 6e 6f 20 73 | | // no s|
|00003420| 74 61 72 74 67 75 6e 20 | 74 6f 20 73 74 61 72 74 |tartgun |to start|
|00003430| 20 75 73 2c 20 73 74 61 | 72 74 20 75 73 20 61 6e | us, sta|rt us an|
|00003440| 79 77 61 79 0d 0a 20 20 | 20 20 7b 0d 0a 20 20 20 |yway.. | {.. |
|00003450| 20 20 20 20 20 62 52 65 | 61 64 79 54 6f 52 75 6e | bRe|adyToRun|
|00003460| 20 3d 20 74 72 75 65 3b | 0d 0a 2f 2f 20 6c 6f 67 | = true;|..// log|
|00003470| 28 20 73 65 6c 66 24 22 | 20 64 69 64 6e 27 74 20 |( self$"| didn't |
|00003480| 73 65 65 20 61 20 73 74 | 61 72 74 67 75 6e 22 20 |see a st|artgun" |
|00003490| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 4c 65 76 65 |);.. | Leve|
|000034a0| 6c 2e 47 61 6d 65 2e 45 | 71 75 69 70 50 6c 61 79 |l.Game.E|quipPlay|
|000034b0| 65 72 28 73 65 6c 66 29 | 3b 0d 0a 20 20 20 20 7d |er(self)|;.. }|
|000034c0| 0d 0a 57 61 69 74 46 6f | 72 47 75 6e 3a 0d 0a 20 |..WaitFo|rGun:.. |
|000034d0| 20 20 20 69 66 20 28 20 | 21 62 52 65 61 64 79 54 | if ( |!bReadyT|
|000034e0| 6f 52 75 6e 20 29 0d 0a | 20 20 20 20 7b 0d 0a 20 |oRun )..| {.. |
|000034f0| 20 20 20 20 20 20 20 53 | 6c 65 65 70 28 30 2e 31 | S|leep(0.1|
|00003500| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 47 6f 74 6f |);.. | Goto|
|00003510| 28 27 57 61 69 74 46 6f | 72 47 75 6e 27 29 3b 0d |('WaitFo|rGun');.|
|00003520| 0a 20 20 20 20 7d 0d 0a | 20 20 20 20 53 65 74 50 |. }..| SetP|
|00003530| 68 79 73 69 63 73 28 50 | 48 59 53 5f 57 61 6c 6b |hysics(P|HYS_Walk|
|00003540| 69 6e 67 29 3b 0d 0a 20 | 20 20 20 54 77 65 65 6e |ing);.. | Tween|
|00003550| 54 6f 46 69 67 68 74 65 | 72 28 30 2e 31 29 3b 0d |ToFighte|r(0.1);.|
|00003560| 0a 09 57 68 61 74 54 6f | 44 6f 4e 65 78 74 28 27 |..WhatTo|DoNext('|
|00003570| 27 2c 27 27 29 3b 0d 0a | 7d 0d 0a 2f 2f 2f 2f 2f |','');..|}../////|
|00003580| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00003590| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 20 53 45 45 |////////|//// SEE|
|000035a0| 4b 49 4e 47 20 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |KING ///|////////|
|000035b0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000035c0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 0d 0a 2f |////////|/////../|
|000035d0| 2f 0d 0a 2f 2f 20 53 65 | 65 6b 69 6e 67 20 67 65 |/..// Se|eking ge|
|000035e0| 6e 65 72 61 6c 6c 79 20 | 6d 65 61 6e 73 20 73 65 |nerally |means se|
|000035f0| 65 6b 69 6e 67 20 74 68 | 65 20 4f 72 64 65 72 4f |eking th|e OrderO|
|00003600| 62 6a 65 63 74 20 77 68 | 69 6c 65 0d 0a 2f 2f 20 |bject wh|ile..// |
|00003610| 6b 65 65 70 69 6e 67 20 | 61 6e 20 65 79 65 20 6f |keeping |an eye o|
|00003620| 75 74 20 66 6f 72 20 70 | 69 63 6b 75 70 73 0d 0a |ut for p|ickups..|
|00003630| 2f 2f 0d 0a 73 74 61 74 | 65 20 53 65 65 6b 69 6e |//..stat|e Seekin|
|00003640| 67 0d 0a 7b 0d 0a 09 69 | 67 6e 6f 72 65 73 20 45 |g..{...i|gnores E|
|00003650| 6e 65 6d 79 4e 6f 74 56 | 69 73 69 62 6c 65 3b 0d |nemyNotV|isible;.|
|00003660| 0a 0d 0a 09 66 75 6e 63 | 74 69 6f 6e 20 42 75 6d |....func|tion Bum|
|00003670| 70 28 61 63 74 6f 72 20 | 4f 74 68 65 72 29 0d 0a |p(actor |Other)..|
|00003680| 09 7b 0d 0a 09 09 6c 6f | 63 61 6c 20 76 65 63 74 |.{....lo|cal vect|
|00003690| 6f 72 20 56 65 6c 44 69 | 72 2c 20 4f 74 68 65 72 |or VelDi|r, Other|
|000036a0| 44 69 72 3b 0d 0a 09 09 | 6c 6f 63 61 6c 20 66 6c |Dir;....|local fl|
|000036b0| 6f 61 74 20 73 70 65 65 | 64 3b 0d 0a 0d 0a 2f 2f |oat spee|d;....//|
|000036c0| 4c 6f 67 28 73 65 6c 66 | 20 24 20 22 5b 53 65 65 |Log(self| $ "[See|
|000036d0| 6b 69 6e 67 5d 20 69 6e | 20 42 75 6d 70 28 22 20 |king] in| Bump(" |
|000036e0| 24 20 4f 74 68 65 72 2e | 6e 61 6d 65 20 24 20 22 |$ Other.|name $ "|
|000036f0| 29 22 29 3b 0d 0a 0d 0a | 09 09 69 66 20 28 50 61 |)");....|..if (Pa|
|00003700| 77 6e 28 4f 74 68 65 72 | 29 20 21 3d 20 4e 6f 6e |wn(Other|) != Non|
|00003710| 65 29 0d 0a 09 09 7b 0d | 0a 09 09 09 69 66 20 28 |e)....{.|....if (|
|00003720| 28 4f 74 68 65 72 20 3d | 3d 20 45 6e 65 6d 79 29 |(Other =|= Enemy)|
|00003730| 20 7c 7c 20 53 65 74 45 | 6e 65 6d 79 28 50 61 77 | || SetE|nemy(Paw|
|00003740| 6e 28 4f 74 68 65 72 29 | 29 29 0d 0a 09 09 09 7b |n(Other)|)).....{|
|00003750| 0d 0a 09 09 09 09 69 66 | 20 28 46 52 61 6e 64 28 |......if| (FRand(|
|00003760| 29 20 3c 20 41 67 67 72 | 65 73 73 69 76 65 6e 65 |) < Aggr|essivene|
|00003770| 73 73 29 0d 0a 09 09 09 | 09 09 72 65 74 75 72 6e |ss).....|..return|
|00003780| 3b 0d 0a 09 09 09 09 62 | 52 65 61 64 79 54 6f 41 |;......b|ReadyToA|
|00003790| 74 74 61 63 6b 20 3d 20 | 74 72 75 65 3b 0d 0a 09 |ttack = |true;...|
|000037a0| 09 09 09 47 6f 74 6f 53 | 74 61 74 65 28 27 41 74 |...GotoS|tate('At|
|000037b0| 74 61 63 6b 69 6e 67 27 | 29 3b 0d 0a 09 09 09 7d |tacking'|);.....}|
|000037c0| 0d 0a 09 09 09 72 65 74 | 75 72 6e 3b 0d 0a 09 09 |.....ret|urn;....|
|000037d0| 7d 0d 0a 09 09 69 66 20 | 28 54 69 6d 65 72 52 61 |}....if |(TimerRa|
|000037e0| 74 65 20 3c 3d 20 30 29 | 0d 0a 09 09 09 73 65 74 |te <= 0)|.....set|
|000037f0| 54 69 6d 65 72 28 31 2e | 30 2c 20 66 61 6c 73 65 |Timer(1.|0, false|
|00003800| 29 3b 0d 0a 09 09 73 70 | 65 65 64 20 3d 20 56 53 |);....sp|eed = VS|
|00003810| 69 7a 65 28 56 65 6c 6f | 63 69 74 79 29 3b 0d 0a |ize(Velo|city);..|
|00003820| 09 09 69 66 20 28 73 70 | 65 65 64 20 3e 20 31 29 |..if (sp|eed > 1)|
|00003830| 0d 0a 09 09 7b 0d 0a 09 | 09 09 56 65 6c 44 69 72 |....{...|..VelDir|
|00003840| 20 3d 20 56 65 6c 6f 63 | 69 74 79 2f 73 70 65 65 | = Veloc|ity/spee|
|00003850| 64 3b 0d 0a 09 09 09 56 | 65 6c 44 69 72 2e 5a 20 |d;.....V|elDir.Z |
|00003860| 3d 20 30 3b 0d 0a 09 09 | 09 4f 74 68 65 72 44 69 |= 0;....|.OtherDi|
|00003870| 72 20 3d 20 4f 74 68 65 | 72 2e 4c 6f 63 61 74 69 |r = Othe|r.Locati|
|00003880| 6f 6e 20 2d 20 4c 6f 63 | 61 74 69 6f 6e 3b 0d 0a |on - Loc|ation;..|
|00003890| 09 09 09 4f 74 68 65 72 | 44 69 72 2e 5a 20 3d 20 |...Other|Dir.Z = |
|000038a0| 30 3b 0d 0a 09 09 09 4f | 74 68 65 72 44 69 72 20 |0;.....O|therDir |
|000038b0| 3d 20 4e 6f 72 6d 61 6c | 28 4f 74 68 65 72 44 69 |= Normal|(OtherDi|
|000038c0| 72 29 3b 0d 0a 09 09 09 | 69 66 20 28 28 56 65 6c |r);.....|if ((Vel|
|000038d0| 44 69 72 20 44 6f 74 20 | 4f 74 68 65 72 44 69 72 |Dir Dot |OtherDir|
|000038e0| 29 20 3e 20 30 2e 39 29 | 0d 0a 09 09 09 7b 0d 0a |) > 0.9)|.....{..|
|000038f0| 09 09 09 09 56 65 6c 6f | 63 69 74 79 2e 58 20 3d |....Velo|city.X =|
|00003900| 20 56 65 6c 44 69 72 2e | 59 3b 0d 0a 09 09 09 09 | VelDir.|Y;......|
|00003910| 56 65 6c 6f 63 69 74 79 | 2e 59 20 3d 20 2d 31 20 |Velocity|.Y = -1 |
|00003920| 2a 20 56 65 6c 44 69 72 | 2e 58 3b 0d 0a 09 09 09 |* VelDir|.X;.....|
|00003930| 09 56 65 6c 6f 63 69 74 | 79 20 2a 3d 20 46 4d 61 |.Velocit|y *= FMa|
|00003940| 78 28 73 70 65 65 64 2c | 20 32 30 30 29 3b 0d 0a |x(speed,| 200);..|
|00003950| 09 09 09 7d 0d 0a 09 09 | 7d 0d 0a 09 09 65 6c 73 |...}....|}....els|
|00003960| 65 20 69 66 20 28 62 43 | 61 6d 70 69 6e 67 29 0d |e if (bC|amping).|
|00003970| 0a 09 09 09 47 6f 74 6f | 53 74 61 74 65 28 27 48 |....Goto|State('H|
|00003980| 75 6e 74 69 6e 67 27 29 | 3b 0d 0a 09 09 44 69 73 |unting')|;....Dis|
|00003990| 61 62 6c 65 28 27 42 75 | 6d 70 27 29 3b 0d 0a 09 |able('Bu|mp');...|
|000039a0| 7d 0d 0a 09 0d 0a 09 66 | 75 6e 63 74 69 6f 6e 20 |}......f|unction |
|000039b0| 48 61 6e 64 6c 65 48 65 | 6c 70 4d 65 73 73 61 67 |HandleHe|lpMessag|
|000039c0| 65 46 72 6f 6d 28 50 61 | 77 6e 20 4f 74 68 65 72 |eFrom(Pa|wn Other|
|000039d0| 29 0d 0a 09 7b 0d 0a 09 | 09 2f 2f 54 72 61 63 65 |)...{...|.//Trace|
|000039e0| 4c 6f 67 28 63 6c 61 73 | 73 20 24 20 22 5b 53 65 |Log(clas|s $ "[Se|
|000039f0| 65 6b 69 6e 67 5d 22 2c | 20 31 30 2c 20 22 69 6e |eking]",| 10, "in|
|00003a00| 20 48 61 6e 64 6c 65 4d | 65 73 73 61 67 65 46 72 | HandleM|essageFr|
|00003a10| 6f 6d 28 22 20 24 20 4f | 74 68 65 72 2e 6e 61 6d |om(" $ O|ther.nam|
|00003a20| 65 20 24 20 22 29 22 29 | 3b 0d 0a 0d 0a 09 09 69 |e $ ")")|;......i|
|00003a30| 66 20 28 28 48 65 61 6c | 74 68 20 3e 20 37 30 29 |f ((Heal|th > 70)|
|00003a40| 20 26 26 20 28 57 65 61 | 70 6f 6e 2e 41 49 52 61 | && (Wea|pon.AIRa|
|00003a50| 74 69 6e 67 20 3e 20 30 | 2e 35 29 20 26 26 20 28 |ting > 0|.5) && (|
|00003a60| 4f 74 68 65 72 2e 50 6c | 61 79 65 72 52 65 70 6c |Other.Pl|ayerRepl|
|00003a70| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|00003a80| 20 3d 3d 20 50 6c 61 79 | 65 72 52 65 70 6c 69 63 | == Play|erReplic|
|00003a90| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 29 0d |ationInf|o.Team).|
|00003aa0| 0a 09 09 09 26 26 20 28 | 4f 74 68 65 72 2e 45 6e |....&& (|Other.En|
|00003ab0| 65 6d 79 20 21 3d 20 4e | 6f 6e 65 29 0d 0a 09 09 |emy != N|one)....|
|00003ac0| 09 26 26 20 28 56 53 69 | 7a 65 28 4f 74 68 65 72 |.&& (VSi|ze(Other|
|00003ad0| 2e 45 6e 65 6d 79 2e 4c | 6f 63 61 74 69 6f 6e 20 |.Enemy.L|ocation |
|00003ae0| 2d 20 4c 6f 63 61 74 69 | 6f 6e 29 20 3c 20 31 32 |- Locati|on) < 12|
|00003af0| 30 30 29 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 53 65 |00))....|{.....Se|
|00003b00| 74 45 6e 65 6d 79 28 4f | 74 68 65 72 2e 45 6e 65 |tEnemy(O|ther.Ene|
|00003b10| 6d 79 29 3b 0d 0a 09 09 | 09 47 6f 74 6f 53 74 61 |my);....|.GotoSta|
|00003b20| 74 65 28 27 41 74 74 61 | 63 6b 69 6e 67 27 29 3b |te('Atta|cking');|
|00003b30| 0d 0a 09 09 7d 0d 0a 09 | 7d 0d 0a 0d 0a 09 66 75 |....}...|}.....fu|
|00003b40| 6e 63 74 69 6f 6e 20 54 | 61 6b 65 44 61 6d 61 67 |nction T|akeDamag|
|00003b50| 65 28 69 6e 74 20 44 61 | 6d 61 67 65 2c 20 50 61 |e(int Da|mage, Pa|
|00003b60| 77 6e 20 69 6e 73 74 69 | 67 61 74 65 64 42 79 2c |wn insti|gatedBy,|
|00003b70| 20 56 65 63 74 6f 72 20 | 68 69 74 6c 6f 63 61 74 | Vector |hitlocat|
|00003b80| 69 6f 6e 2c 20 0d 0a 09 | 09 09 09 09 09 09 56 65 |ion, ...|......Ve|
|00003b90| 63 74 6f 72 20 6d 6f 6d | 65 6e 74 75 6d 2c 20 6e |ctor mom|entum, n|
|00003ba0| 61 6d 65 20 64 61 6d 61 | 67 65 54 79 70 65 29 0d |ame dama|geType).|
|00003bb0| 0a 09 7b 0d 0a 09 09 2f | 2f 54 72 61 63 65 4c 6f |..{..../|/TraceLo|
|00003bc0| 67 28 63 6c 61 73 73 20 | 24 20 22 5b 53 65 65 6b |g(class |$ "[Seek|
|00003bd0| 69 6e 67 5d 22 2c 20 31 | 30 2c 20 22 69 6e 20 54 |ing]", 1|0, "in T|
|00003be0| 61 6b 65 44 61 6d 61 67 | 65 28 2e 2e 2e 29 22 29 |akeDamag|e(...)")|
|00003bf0| 3b 0d 0a 0d 0a 09 09 4c | 61 73 74 48 69 74 42 79 |;......L|astHitBy|
|00003c00| 20 3d 20 69 6e 73 74 69 | 67 61 74 65 64 42 79 3b | = insti|gatedBy;|
|00003c10| 0d 0a 09 09 4c 61 73 74 | 48 69 74 54 69 6d 65 20 |....Last|HitTime |
|00003c20| 3d 20 4c 65 76 65 6c 2e | 54 69 6d 65 53 65 63 6f |= Level.|TimeSeco|
|00003c30| 6e 64 73 3b 0d 0a 09 09 | 47 6c 6f 62 61 6c 2e 54 |nds;....|Global.T|
|00003c40| 61 6b 65 44 61 6d 61 67 | 65 28 44 61 6d 61 67 65 |akeDamag|e(Damage|
|00003c50| 2c 20 69 6e 73 74 69 67 | 61 74 65 64 42 79 2c 20 |, instig|atedBy, |
|00003c60| 68 69 74 6c 6f 63 61 74 | 69 6f 6e 2c 20 6d 6f 6d |hitlocat|ion, mom|
|00003c70| 65 6e 74 75 6d 2c 20 64 | 61 6d 61 67 65 54 79 70 |entum, d|amageTyp|
|00003c80| 65 29 3b 0d 0a 09 09 69 | 66 20 28 68 65 61 6c 74 |e);....i|f (healt|
|00003c90| 68 20 3c 3d 20 30 29 0d | 0a 09 09 09 72 65 74 75 |h <= 0).|....retu|
|00003ca0| 72 6e 3b 0d 0a 0d 0a 09 | 09 69 66 20 28 4e 65 78 |rn;.....|.if (Nex|
|00003cb0| 74 53 74 61 74 65 20 3d | 3d 20 27 54 61 6b 65 48 |tState =|= 'TakeH|
|00003cc0| 69 74 27 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 4e 65 |it')....|{.....Ne|
|00003cd0| 78 74 53 74 61 74 65 20 | 3d 20 27 41 74 74 61 63 |xtState |= 'Attac|
|00003ce0| 6b 69 6e 67 27 3b 20 0d | 0a 09 09 09 4e 65 78 74 |king'; .|....Next|
|00003cf0| 4c 61 62 65 6c 20 3d 20 | 27 27 3b 0d 0a 09 09 09 |Label = |'';.....|
|00003d00| 47 6f 74 6f 53 74 61 74 | 65 28 27 54 61 6b 65 48 |GotoStat|e('TakeH|
|00003d10| 69 74 27 29 3b 20 0d 0a | 09 09 7d 0d 0a 09 09 65 |it'); ..|..}....e|
|00003d20| 6c 73 65 20 0d 0a 09 09 | 7b 0d 0a 09 09 09 62 52 |lse ....|{.....bR|
|00003d30| 65 61 64 79 54 6f 41 74 | 74 61 63 6b 20 3d 20 74 |eadyToAt|tack = t|
|00003d40| 72 75 65 3b 0d 0a 09 09 | 09 47 6f 74 6f 53 74 61 |rue;....|.GotoSta|
|00003d50| 74 65 28 27 41 74 74 61 | 63 6b 69 6e 67 27 29 3b |te('Atta|cking');|
|00003d60| 0d 0a 09 09 7d 0d 0a 09 | 7d 0d 0a 0d 0a 09 66 75 |....}...|}.....fu|
|00003d70| 6e 63 74 69 6f 6e 20 46 | 65 61 72 54 68 69 73 53 |nction F|earThisS|
|00003d80| 70 6f 74 28 41 63 74 6f | 72 20 61 53 70 6f 74 29 |pot(Acto|r aSpot)|
|00003d90| 0d 0a 09 7b 0d 0a 09 09 | 2f 2f 54 72 61 63 65 4c |...{....|//TraceL|
|00003da0| 6f 67 28 63 6c 61 73 73 | 20 24 20 22 5b 53 65 65 |og(class| $ "[See|
|00003db0| 6b 69 6e 67 5d 22 2c 20 | 31 30 2c 20 22 69 6e 20 |king]", |10, "in |
|00003dc0| 46 65 61 72 54 68 69 73 | 53 70 6f 74 28 22 20 24 |FearThis|Spot(" $|
|00003dd0| 20 61 53 70 6f 74 2e 6e | 61 6d 65 20 24 20 22 29 | aSpot.n|ame $ ")|
|00003de0| 22 29 3b 0d 0a 0d 0a 09 | 09 44 65 73 74 69 6e 61 |");.....|.Destina|
|00003df0| 74 69 6f 6e 20 3d 20 4c | 6f 63 61 74 69 6f 6e 20 |tion = L|ocation |
|00003e00| 2b 20 31 32 30 20 2a 20 | 4e 6f 72 6d 61 6c 28 4c |+ 120 * |Normal(L|
|00003e10| 6f 63 61 74 69 6f 6e 20 | 2d 20 61 53 70 6f 74 2e |ocation |- aSpot.|
|00003e20| 4c 6f 63 61 74 69 6f 6e | 29 3b 20 0d 0a 09 09 47 |Location|); ....G|
|00003e30| 6f 74 6f 53 74 61 74 65 | 28 27 48 75 6e 74 69 6e |otoState|('Huntin|
|00003e40| 67 27 2c 20 27 4d 6f 76 | 69 6e 67 27 29 3b 0d 0a |g', 'Mov|ing');..|
|00003e50| 09 7d 0d 0a 09 0d 0a 09 | 66 75 6e 63 74 69 6f 6e |.}......|function|
|00003e60| 20 54 69 6d 65 72 28 29 | 0d 0a 09 7b 0d 0a 09 09 | Timer()|...{....|
|00003e70| 2f 2f 54 72 61 63 65 4c | 6f 67 28 63 6c 61 73 73 |//TraceL|og(class|
|00003e80| 20 24 20 22 5b 53 65 65 | 6b 69 6e 67 5d 22 2c 20 | $ "[See|king]", |
|00003e90| 31 30 2c 20 22 69 6e 20 | 54 69 6d 65 72 28 29 22 |10, "in |Timer()"|
|00003ea0| 29 3b 0d 0a 0d 0a 09 09 | 62 52 65 61 64 79 54 6f |);......|bReadyTo|
|00003eb0| 41 74 74 61 63 6b 20 3d | 20 54 72 75 65 3b 0d 0a |Attack =| True;..|
|00003ec0| 09 09 45 6e 61 62 6c 65 | 28 27 42 75 6d 70 27 29 |..Enable|('Bump')|
|00003ed0| 3b 0d 0a 09 7d 0d 0a 0d | 0a 09 66 75 6e 63 74 69 |;...}...|..functi|
|00003ee0| 6f 6e 20 53 65 74 46 61 | 6c 6c 28 29 0d 0a 09 7b |on SetFa|ll()...{|
|00003ef0| 0d 0a 09 09 2f 2f 54 72 | 61 63 65 4c 6f 67 28 63 |....//Tr|aceLog(c|
|00003f00| 6c 61 73 73 20 24 20 22 | 5b 53 65 65 6b 69 6e 67 |lass $ "|[Seeking|
|00003f10| 5d 22 2c 20 31 30 2c 20 | 22 69 6e 20 53 65 74 46 |]", 10, |"in SetF|
|00003f20| 61 6c 6c 28 29 22 29 3b | 0d 0a 0d 0a 09 09 62 57 |all()");|......bW|
|00003f30| 61 6c 6c 41 64 6a 75 73 | 74 20 3d 20 66 61 6c 73 |allAdjus|t = fals|
|00003f40| 65 3b 0d 0a 09 09 4e 65 | 78 74 53 74 61 74 65 20 |e;....Ne|xtState |
|00003f50| 3d 20 27 53 65 65 6b 69 | 6e 67 27 3b 20 0d 0a 09 |= 'Seeki|ng'; ...|
|00003f60| 09 4e 65 78 74 4c 61 62 | 65 6c 20 3d 20 27 4c 61 |.NextLab|el = 'La|
|00003f70| 6e 64 65 64 27 3b 0d 0a | 09 09 4e 65 78 74 41 6e |nded';..|..NextAn|
|00003f80| 69 6d 20 3d 20 41 6e 69 | 6d 53 65 71 75 65 6e 63 |im = Ani|mSequenc|
|00003f90| 65 3b 0d 0a 09 09 47 6f | 74 6f 53 74 61 74 65 28 |e;....Go|toState(|
|00003fa0| 27 46 61 6c 6c 69 6e 67 | 53 74 61 74 65 27 29 3b |'Falling|State');|
|00003fb0| 20 0d 0a 09 7d 0d 0a 0d | 0a 09 66 75 6e 63 74 69 | ...}...|..functi|
|00003fc0| 6f 6e 20 45 6e 65 6d 79 | 41 63 71 75 69 72 65 64 |on Enemy|Acquired|
|00003fd0| 28 29 0d 0a 09 7b 0d 0a | 09 09 2f 2f 54 72 61 63 |()...{..|..//Trac|
|00003fe0| 65 4c 6f 67 28 63 6c 61 | 73 73 20 24 20 22 5b 53 |eLog(cla|ss $ "[S|
|00003ff0| 65 65 6b 69 6e 67 5d 22 | 2c 20 31 30 2c 20 22 69 |eeking]"|, 10, "i|
|00004000| 6e 20 45 6e 65 6d 79 41 | 63 71 75 69 72 65 64 28 |n EnemyA|cquired(|
|00004010| 29 22 29 3b 0d 0a 0d 0a | 09 09 47 6f 74 6f 53 74 |)");....|..GotoSt|
|00004020| 61 74 65 28 27 41 63 71 | 75 69 73 69 74 69 6f 6e |ate('Acq|uisition|
|00004030| 27 29 3b 0d 0a 09 7d 0d | 0a 0d 0a 09 66 75 6e 63 |');...}.|....func|
|00004040| 74 69 6f 6e 20 48 69 74 | 57 61 6c 6c 28 76 65 63 |tion Hit|Wall(vec|
|00004050| 74 6f 72 20 48 69 74 4e | 6f 72 6d 61 6c 2c 20 61 |tor HitN|ormal, a|
|00004060| 63 74 6f 72 20 57 61 6c | 6c 29 0d 0a 09 7b 0d 0a |ctor Wal|l)...{..|
|00004070| 09 09 2f 2f 54 72 61 63 | 65 4c 6f 67 28 63 6c 61 |..//Trac|eLog(cla|
|00004080| 73 73 20 24 20 22 5b 53 | 65 65 6b 69 6e 67 5d 22 |ss $ "[S|eeking]"|
|00004090| 2c 20 31 30 2c 20 22 69 | 6e 20 48 69 74 57 61 6c |, 10, "i|n HitWal|
|000040a0| 6c 28 2e 2e 2e 29 22 29 | 3b 0d 0a 0d 0a 09 09 69 |l(...)")|;......i|
|000040b0| 66 20 28 50 68 79 73 69 | 63 73 20 3d 3d 20 50 48 |f (Physi|cs == PH|
|000040c0| 59 53 5f 46 61 6c 6c 69 | 6e 67 29 0d 0a 09 09 09 |YS_Falli|ng).....|
|000040d0| 72 65 74 75 72 6e 3b 0d | 0a 09 09 69 66 20 28 57 |return;.|...if (W|
|000040e0| 61 6c 6c 2e 49 73 41 28 | 27 4d 6f 76 65 72 27 29 |all.IsA(|'Mover')|
|000040f0| 20 26 26 20 4d 6f 76 65 | 72 28 57 61 6c 6c 29 2e | && Move|r(Wall).|
|00004100| 48 61 6e 64 6c 65 44 6f | 6f 72 28 73 65 6c 66 29 |HandleDo|or(self)|
|00004110| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 69 66 20 28 53 |)....{..|...if (S|
|00004120| 70 65 63 69 61 6c 50 61 | 75 73 65 20 3e 20 30 29 |pecialPa|use > 0)|
|00004130| 0d 0a 09 09 09 09 41 63 | 63 65 6c 65 72 61 74 69 |......Ac|celerati|
|00004140| 6f 6e 20 3d 20 76 65 63 | 74 28 30 2c 30 2c 30 29 |on = vec|t(0,0,0)|
|00004150| 3b 0d 0a 09 09 09 47 6f | 74 6f 53 74 61 74 65 28 |;.....Go|toState(|
|00004160| 27 53 65 65 6b 69 6e 67 | 27 2c 20 27 53 70 65 63 |'Seeking|', 'Spec|
|00004170| 69 61 6c 4e 61 76 69 67 | 27 29 3b 0d 0a 09 09 09 |ialNavig|');.....|
|00004180| 72 65 74 75 72 6e 3b 0d | 0a 09 09 7d 0d 0a 09 09 |return;.|...}....|
|00004190| 46 6f 63 75 73 20 3d 20 | 44 65 73 74 69 6e 61 74 |Focus = |Destinat|
|000041a0| 69 6f 6e 3b 0d 0a 09 09 | 69 66 20 28 21 62 57 61 |ion;....|if (!bWa|
|000041b0| 6c 6c 41 64 6a 75 73 74 | 20 26 26 20 50 69 63 6b |llAdjust| && Pick|
|000041c0| 57 61 6c 6c 41 64 6a 75 | 73 74 28 29 29 0d 0a 09 |WallAdju|st())...|
|000041d0| 09 09 47 6f 74 6f 53 74 | 61 74 65 28 27 53 65 65 |..GotoSt|ate('See|
|000041e0| 6b 69 6e 67 27 2c 20 27 | 41 64 6a 75 73 74 46 72 |king', '|AdjustFr|
|000041f0| 6f 6d 57 61 6c 6c 27 29 | 3b 0d 0a 09 09 65 6c 73 |omWall')|;....els|
|00004200| 65 0d 0a 09 09 7b 0d 0a | 09 09 09 4d 6f 76 65 54 |e....{..|...MoveT|
|00004210| 69 6d 65 72 20 3d 20 2d | 31 2e 30 3b 0d 0a 09 09 |imer = -|1.0;....|
|00004220| 09 62 57 61 6c 6c 41 64 | 6a 75 73 74 20 3d 20 66 |.bWallAd|just = f|
|00004230| 61 6c 73 65 3b 0d 0a 09 | 09 7d 0d 0a 09 7d 0d 0a |alse;...|.}...}..|
|00004240| 0d 0a 09 66 75 6e 63 74 | 69 6f 6e 20 50 69 63 6b |...funct|ion Pick|
|00004250| 44 65 73 74 69 6e 61 74 | 69 6f 6e 28 6f 70 74 69 |Destinat|ion(opti|
|00004260| 6f 6e 61 6c 20 62 6f 6f | 6c 20 62 4e 6f 43 68 61 |onal boo|l bNoCha|
|00004270| 72 67 65 29 0d 0a 09 7b | 0d 0a 09 09 6c 6f 63 61 |rge)...{|....loca|
|00004280| 6c 20 69 6e 74 20 69 3b | 0d 0a 09 09 6c 6f 63 61 |l int i;|....loca|
|00004290| 6c 20 66 6c 6f 61 74 20 | 44 69 73 74 3b 0d 0a 09 |l float |Dist;...|
|000042a0| 09 6c 6f 63 61 6c 20 61 | 63 74 6f 72 20 4d 79 44 |.local a|ctor MyD|
|000042b0| 65 73 74 69 6e 61 74 69 | 6f 6e 3b 0d 0a 0d 0a 09 |estinati|on;.....|
|000042c0| 09 2f 2f 54 72 61 63 65 | 4c 6f 67 28 63 6c 61 73 |.//Trace|Log(clas|
|000042d0| 73 20 24 20 22 5b 53 65 | 65 6b 69 6e 67 5d 22 2c |s $ "[Se|eking]",|
|000042e0| 20 31 30 2c 20 22 69 6e | 20 50 69 63 6b 44 65 73 | 10, "in| PickDes|
|000042f0| 74 69 6e 61 74 69 6f 6e | 28 29 22 29 3b 0d 0a 0d |tination|()");...|
|00004300| 0a 09 09 2f 2f 20 66 69 | 6e 64 20 6e 65 78 74 20 |...// fi|nd next |
|00004310| 48 75 6e 74 50 6f 69 6e | 74 0d 0a 09 09 4d 79 44 |HuntPoin|t....MyD|
|00004320| 65 73 74 69 6e 61 74 69 | 6f 6e 20 3d 20 6e 6f 6e |estinati|on = non|
|00004330| 65 3b 0d 0a 09 09 66 6f | 72 20 28 69 20 3d 20 30 |e;....fo|r (i = 0|
|00004340| 3b 20 69 20 3c 3d 20 4c | 65 76 65 6c 4e 75 6d 42 |; i <= L|evelNumB|
|00004350| 61 6c 6c 73 3b 20 69 2b | 2b 29 0d 0a 09 09 09 69 |alls; i+|+).....i|
|00004360| 66 20 28 4c 65 76 65 6c | 48 75 6e 74 50 6f 69 6e |f (Level|HuntPoin|
|00004370| 74 73 5b 69 5d 2e 62 49 | 73 4e 65 65 64 65 64 20 |ts[i].bI|sNeeded |
|00004380| 3d 3d 20 31 29 0d 0a 09 | 09 09 7b 0d 0a 09 09 09 |== 1)...|..{.....|
|00004390| 09 4d 79 44 65 73 74 69 | 6e 61 74 69 6f 6e 20 3d |.MyDesti|nation =|
|000043a0| 20 4c 65 76 65 6c 48 75 | 6e 74 50 6f 69 6e 74 73 | LevelHu|ntPoints|
|000043b0| 5b 69 5d 2e 48 75 6e 74 | 50 6f 69 6e 74 3b 0d 0a |[i].Hunt|Point;..|
|000043c0| 09 09 09 09 62 72 65 61 | 6b 3b 0d 0a 09 09 09 7d |....brea|k;.....}|
|000043d0| 0d 0a 0d 0a 09 09 69 66 | 20 28 4d 79 44 65 73 74 |......if| (MyDest|
|000043e0| 69 6e 61 74 69 6f 6e 20 | 3d 3d 20 6e 6f 6e 65 29 |ination |== none)|
|000043f0| 0d 0a 09 09 7b 0d 0a 09 | 09 09 2f 2f 54 72 61 63 |....{...|..//Trac|
|00004400| 65 4c 6f 67 28 63 6c 61 | 73 73 20 24 20 22 5b 53 |eLog(cla|ss $ "[S|
|00004410| 65 65 6b 69 6e 67 5d 22 | 2c 20 35 2c 20 22 6e 6f |eeking]"|, 5, "no|
|00004420| 20 6d 6f 72 65 20 48 75 | 6e 74 50 6f 69 6e 74 73 | more Hu|ntPoints|
|00004430| 20 74 6f 20 73 65 65 6b | 2c 20 72 65 73 65 74 74 | to seek|, resett|
|00004440| 69 6e 67 20 6c 69 73 74 | 22 29 3b 0d 0a 09 09 09 |ing list|");.....|
|00004450| 53 65 74 53 65 65 6b 50 | 61 74 74 65 72 6e 28 29 |SetSeekP|attern()|
|00004460| 3b 0d 0a 09 09 09 72 65 | 74 75 72 6e 3b 0d 0a 09 |;.....re|turn;...|
|00004470| 09 7d 0d 0a 0d 0a 09 09 | 2f 2f 54 72 61 63 65 4c |.}......|//TraceL|
|00004480| 6f 67 28 63 6c 61 73 73 | 20 24 20 22 5b 53 65 65 |og(class| $ "[See|
|00004490| 6b 69 6e 67 5d 22 2c 20 | 35 2c 20 22 73 65 65 6b |king]", |5, "seek|
|000044a0| 69 6e 67 20 48 75 6e 74 | 50 6f 69 6e 74 23 22 20 |ing Hunt|Point#" |
|000044b0| 24 20 69 20 24 20 22 3a | 20 22 20 24 20 4d 79 44 |$ i $ ":| " $ MyD|
|000044c0| 65 73 74 69 6e 61 74 69 | 6f 6e 2e 4e 61 6d 65 29 |estinati|on.Name)|
|000044d0| 3b 0d 0a 0d 0a 09 09 69 | 66 20 28 41 63 74 6f 72 |;......i|f (Actor|
|000044e0| 52 65 61 63 68 61 62 6c | 65 28 4d 79 44 65 73 74 |Reachabl|e(MyDest|
|000044f0| 69 6e 61 74 69 6f 6e 29 | 29 0d 0a 09 09 7b 0d 0a |ination)|)....{..|
|00004500| 09 09 09 44 69 73 74 20 | 3d 20 56 53 69 7a 65 28 |...Dist |= VSize(|
|00004510| 4d 79 44 65 73 74 69 6e | 61 74 69 6f 6e 2e 4c 6f |MyDestin|ation.Lo|
|00004520| 63 61 74 69 6f 6e 20 2d | 20 4c 6f 63 61 74 69 6f |cation -| Locatio|
|00004530| 6e 29 3b 0d 0a 09 09 09 | 69 66 20 28 44 69 73 74 |n);.....|if (Dist|
|00004540| 20 3c 20 32 30 30 29 0d | 0a 09 09 09 7b 0d 0a 09 | < 200).|....{...|
|00004550| 09 09 09 2f 2f 20 61 72 | 72 69 76 65 64 21 21 21 |...// ar|rived!!!|
|00004560| 0d 0a 09 09 09 09 2f 2f | 54 72 61 63 65 4c 6f 67 |......//|TraceLog|
|00004570| 28 63 6c 61 73 73 20 24 | 20 22 5b 53 65 65 6b 69 |(class $| "[Seeki|
|00004580| 6e 67 5d 22 2c 20 35 2c | 20 22 61 72 72 69 76 65 |ng]", 5,| "arrive|
|00004590| 64 20 61 74 20 64 65 73 | 74 69 6e 61 74 69 6f 6e |d at des|tination|
|000045a0| 21 20 20 44 69 73 74 20 | 3d 20 22 20 24 20 44 69 |! Dist |= " $ Di|
|000045b0| 73 74 29 3b 0d 0a 09 09 | 09 09 4c 65 76 65 6c 48 |st);....|..LevelH|
|000045c0| 75 6e 74 50 6f 69 6e 74 | 73 5b 69 5d 2e 62 49 73 |untPoint|s[i].bIs|
|000045d0| 4e 65 65 64 65 64 20 3d | 20 30 3b 0d 0a 09 09 09 |Needed =| 0;.....|
|000045e0| 09 47 6f 74 6f 53 74 61 | 74 65 28 27 48 75 6e 74 |.GotoSta|te('Hunt|
|000045f0| 69 6e 67 27 29 3b 0d 0a | 09 09 09 09 72 65 74 75 |ing');..|....retu|
|00004600| 72 6e 3b 0d 0a 09 09 09 | 7d 0d 0a 0d 0a 09 09 09 |rn;.....|}.......|
|00004610| 2f 2f 54 72 61 63 65 4c | 6f 67 28 63 6c 61 73 73 |//TraceL|og(class|
|00004620| 20 24 20 22 5b 53 65 65 | 6b 69 6e 67 5d 22 2c 20 | $ "[See|king]", |
|00004630| 35 2c 20 22 41 63 74 6f | 72 52 65 61 63 68 61 62 |5, "Acto|rReachab|
|00004640| 6c 65 2c 20 62 75 74 20 | 6e 6f 74 20 63 6c 6f 73 |le, but |not clos|
|00004650| 65 20 65 6e 6f 75 67 68 | 20 79 65 74 2e 20 20 44 |e enough| yet. D|
|00004660| 69 73 74 20 3d 20 22 20 | 24 20 44 69 73 74 29 3b |ist = " |$ Dist);|
|00004670| 0d 0a 09 09 09 4d 6f 76 | 65 54 61 72 67 65 74 20 |.....Mov|eTarget |
|00004680| 3d 20 4d 79 44 65 73 74 | 69 6e 61 74 69 6f 6e 3b |= MyDest|ination;|
|00004690| 0d 0a 09 09 09 72 65 74 | 75 72 6e 3b 0d 0a 09 09 |.....ret|urn;....|
|000046a0| 7d 0d 0a 0d 0a 09 09 2f | 2f 54 72 61 63 65 4c 6f |}....../|/TraceLo|
|000046b0| 67 28 63 6c 61 73 73 20 | 24 20 22 5b 53 65 65 6b |g(class |$ "[Seek|
|000046c0| 69 6e 67 5d 22 2c 20 35 | 2c 20 22 48 75 6e 74 50 |ing]", 5|, "HuntP|
|000046d0| 6f 69 6e 74 20 6e 6f 74 | 20 64 69 72 65 63 74 6c |oint not| directl|
|000046e0| 79 20 72 65 61 63 68 61 | 62 6c 65 22 29 3b 0d 0a |y reacha|ble");..|
|000046f0| 0d 0a 09 09 4d 6f 76 65 | 54 61 72 67 65 74 20 3d |....Move|Target =|
|00004700| 20 46 69 6e 64 50 61 74 | 68 54 6f 77 61 72 64 28 | FindPat|hToward(|
|00004710| 4d 79 44 65 73 74 69 6e | 61 74 69 6f 6e 29 3b 0d |MyDestin|ation);.|
|00004720| 0a 0d 0a 09 09 69 66 20 | 28 4d 6f 76 65 54 61 72 |.....if |(MoveTar|
|00004730| 67 65 74 20 3d 3d 20 6e | 6f 6e 65 29 0d 0a 09 09 |get == n|one)....|
|00004740| 7b 0d 0a 09 09 09 2f 2f | 20 75 68 6f 68 21 0d 0a |{.....//| uhoh!..|
|00004750| 09 09 09 2f 2f 20 74 72 | 79 20 73 6f 6d 65 77 68 |...// tr|y somewh|
|00004760| 65 72 65 20 65 6c 73 65 | 0d 0a 09 09 09 2f 2f 54 |ere else|.....//T|
|00004770| 72 61 63 65 4c 6f 67 28 | 63 6c 61 73 73 20 24 20 |raceLog(|class $ |
|00004780| 22 5b 53 65 65 6b 69 6e | 67 5d 22 2c 20 35 2c 20 |"[Seekin|g]", 5, |
|00004790| 22 6e 6f 20 70 61 74 68 | 20 74 6f 77 61 72 64 22 |"no path| toward"|
|000047a0| 20 24 20 4c 65 76 65 6c | 48 75 6e 74 50 6f 69 6e | $ Level|HuntPoin|
|000047b0| 74 73 5b 69 5d 2e 48 75 | 6e 74 50 6f 69 6e 74 29 |ts[i].Hu|ntPoint)|
|000047c0| 3b 0d 0a 09 09 09 2f 2f | 4c 65 76 65 6c 48 75 6e |;.....//|LevelHun|
|000047d0| 74 50 6f 69 6e 74 73 5b | 69 5d 2e 62 49 73 4e 65 |tPoints[|i].bIsNe|
|000047e0| 65 64 65 64 20 3d 20 30 | 3b 09 09 2f 2f 20 61 76 |eded = 0|;..// av|
|000047f0| 6f 69 64 20 74 68 69 73 | 20 73 70 6f 74 20 74 6f |oid this| spot to|
|00004800| 20 61 76 6f 69 64 20 69 | 6e 66 69 6e 69 74 65 20 | avoid i|nfinite |
|00004810| 6c 6f 6f 70 73 2e 2e 2e | 0d 0a 09 09 09 2f 2f 47 |loops...|.....//G|
|00004820| 6f 74 6f 53 74 61 74 65 | 28 27 53 65 65 6b 69 6e |otoState|('Seekin|
|00004830| 67 27 2c 20 27 42 65 67 | 69 6e 27 29 3b 0d 0a 09 |g', 'Beg|in');...|
|00004840| 09 09 47 6f 74 6f 53 74 | 61 74 65 28 27 4c 6f 73 |..GotoSt|ate('Los|
|00004850| 74 27 29 3b 09 09 09 09 | 09 09 2f 2f 20 61 64 6d |t');....|..// adm|
|00004860| 69 74 20 69 74 2c 20 77 | 65 27 72 65 20 6c 6f 73 |it it, w|e're los|
|00004870| 74 2e 2e 2e 0d 0a 09 09 | 7d 0d 0a 09 09 65 6c 73 |t.......|}....els|
|00004880| 65 0d 0a 09 09 09 3b 2f | 2f 54 72 61 63 65 4c 6f |e.....;/|/TraceLo|
|00004890| 67 28 63 6c 61 73 73 20 | 24 20 22 5b 53 65 65 6b |g(class |$ "[Seek|
|000048a0| 69 6e 67 5d 22 2c 20 35 | 2c 20 22 73 65 74 74 69 |ing]", 5|, "setti|
|000048b0| 6e 67 20 4d 6f 76 65 54 | 61 72 67 65 74 20 28 50 |ng MoveT|arget (P|
|000048c0| 61 74 68 54 6f 77 61 72 | 64 29 20 74 6f 20 22 20 |athTowar|d) to " |
|000048d0| 24 20 4d 6f 76 65 54 61 | 72 67 65 74 29 3b 0d 0a |$ MoveTa|rget);..|
|000048e0| 09 7d 0d 0a 0d 0a 0d 0a | 09 66 75 6e 63 74 69 6f |.}......|.functio|
|000048f0| 6e 20 41 6e 69 6d 45 6e | 64 28 29 20 0d 0a 09 7b |n AnimEn|d() ...{|
|00004900| 0d 0a 09 09 2f 2f 54 72 | 61 63 65 4c 6f 67 28 63 |....//Tr|aceLog(c|
|00004910| 6c 61 73 73 20 24 20 22 | 5b 53 65 65 6b 69 6e 67 |lass $ "|[Seeking|
|00004920| 5d 22 2c 20 31 30 2c 20 | 22 69 6e 20 41 6e 69 6d |]", 10, |"in Anim|
|00004930| 45 6e 64 28 29 22 29 3b | 0d 0a 0d 0a 09 09 69 66 |End()");|......if|
|00004940| 20 28 62 43 61 6d 70 69 | 6e 67 29 0d 0a 09 09 09 | (bCampi|ng).....|
|00004950| 50 6c 61 79 57 61 69 74 | 69 6e 67 28 29 3b 0d 0a |PlayWait|ing();..|
|00004960| 09 09 65 6c 73 65 0d 0a | 09 09 09 50 6c 61 79 52 |..else..|...PlayR|
|00004970| 75 6e 6e 69 6e 67 28 29 | 3b 0d 0a 09 7d 0d 0a 0d |unning()|;...}...|
|00004980| 0a 09 66 75 6e 63 74 69 | 6f 6e 20 53 68 61 72 65 |..functi|on Share|
|00004990| 57 69 74 68 54 65 61 6d | 28 29 0d 0a 09 7b 0d 0a |WithTeam|()...{..|
|000049a0| 09 09 6c 6f 63 61 6c 20 | 62 6f 6f 6c 20 62 48 61 |..local |bool bHa|
|000049b0| 76 65 49 74 65 6d 2c 20 | 62 49 73 48 65 61 6c 74 |veItem, |bIsHealt|
|000049c0| 68 2c 20 62 4f 74 68 65 | 72 48 61 73 3b 0d 0a 09 |h, bOthe|rHas;...|
|000049d0| 09 6c 6f 63 61 6c 20 49 | 6e 76 65 6e 74 6f 72 79 |.local I|nventory|
|000049e0| 20 67 6f 61 6c 49 74 65 | 6d 3b 0d 0a 09 09 6c 6f | goalIte|m;....lo|
|000049f0| 63 61 6c 20 50 61 77 6e | 20 50 3b 0d 0a 0d 0a 09 |cal Pawn| P;.....|
|00004a00| 09 2f 2f 54 72 61 63 65 | 4c 6f 67 28 63 6c 61 73 |.//Trace|Log(clas|
|00004a10| 73 20 24 20 22 5b 53 65 | 65 6b 69 6e 67 5d 22 2c |s $ "[Se|eking]",|
|00004a20| 20 31 30 2c 20 22 69 6e | 20 53 68 61 72 65 57 69 | 10, "in| ShareWi|
|00004a30| 74 68 54 65 61 6d 28 29 | 22 29 3b 0d 0a 0d 0a 09 |thTeam()|");.....|
|00004a40| 09 67 6f 61 6c 49 74 65 | 6d 20 3d 20 49 6e 76 65 |.goalIte|m = Inve|
|00004a50| 6e 74 6f 72 79 53 70 6f | 74 28 4d 6f 76 65 54 61 |ntorySpo|t(MoveTa|
|00004a60| 72 67 65 74 29 2e 6d 61 | 72 6b 65 64 49 74 65 6d |rget).ma|rkedItem|
|00004a70| 3b 0d 0a 09 09 69 66 20 | 28 67 6f 61 6c 49 74 65 |;....if |(goalIte|
|00004a80| 6d 20 3d 3d 20 4e 6f 6e | 65 29 20 2f 2f 20 46 49 |m == Non|e) // FI|
|00004a90| 58 4d 45 20 52 45 4d 4f | 56 45 0d 0a 09 09 7b 0d |XME REMO|VE....{.|
|00004aa0| 0a 2f 2f 09 09 09 6c 6f | 67 28 22 20 4e 6f 20 6d |.//...lo|g(" No m|
|00004ab0| 61 72 6b 65 64 20 69 74 | 65 6d 20 66 6f 72 20 22 |arked it|em for "|
|00004ac0| 24 4d 6f 76 65 54 61 72 | 67 65 74 29 3b 0d 0a 09 |$MoveTar|get);...|
|00004ad0| 09 09 72 65 74 75 72 6e | 3b 0d 0a 09 09 7d 0d 0a |..return|;....}..|
|00004ae0| 0d 0a 09 09 69 66 20 28 | 67 6f 61 6c 49 74 65 6d |....if (|goalItem|
|00004af0| 2e 49 73 41 28 27 57 65 | 61 70 6f 6e 27 29 29 0d |.IsA('We|apon')).|
|00004b00| 0a 09 09 7b 0d 0a 09 09 | 09 69 66 20 28 28 57 65 |...{....|.if ((We|
|00004b10| 61 70 6f 6e 20 3d 3d 20 | 4e 6f 6e 65 29 20 7c 7c |apon == |None) |||
|00004b20| 20 28 57 65 61 70 6f 6e | 2e 41 49 52 61 74 69 6e | (Weapon|.AIRatin|
|00004b30| 67 20 3c 20 30 2e 34 35 | 29 29 0d 0a 09 09 09 09 |g < 0.45|))......|
|00004b40| 72 65 74 75 72 6e 3b 0d | 0a 09 09 09 62 48 61 76 |return;.|....bHav|
|00004b50| 65 49 74 65 6d 20 3d 20 | 28 46 69 6e 64 49 6e 76 |eItem = |(FindInv|
|00004b60| 65 6e 74 6f 72 79 54 79 | 70 65 28 67 6f 61 6c 49 |entoryTy|pe(goalI|
|00004b70| 74 65 6d 2e 63 6c 61 73 | 73 29 20 21 3d 20 4e 6f |tem.clas|s) != No|
|00004b80| 6e 65 29 3b 0d 0a 09 09 | 7d 0d 0a 09 09 65 6c 73 |ne);....|}....els|
|00004b90| 65 20 69 66 20 28 67 6f | 61 6c 49 74 65 6d 2e 49 |e if (go|alItem.I|
|00004ba0| 73 41 28 27 48 65 61 6c | 74 68 27 29 29 0d 0a 09 |sA('Heal|th'))...|
|00004bb0| 09 7b 0d 0a 09 09 09 62 | 49 73 48 65 61 6c 74 68 |.{.....b|IsHealth|
|00004bc0| 20 3d 20 74 72 75 65 3b | 0d 0a 09 09 09 69 66 20 | = true;|.....if |
|00004bd0| 28 48 65 61 6c 74 68 20 | 3c 20 36 30 29 0d 0a 09 |(Health |< 60)...|
|00004be0| 09 09 09 72 65 74 75 72 | 6e 3b 0d 0a 09 09 7d 0d |...retur|n;....}.|
|00004bf0| 0a 09 09 65 6c 73 65 20 | 0d 0a 09 09 09 72 65 74 |...else |.....ret|
|00004c00| 75 72 6e 3b 0d 0a 0d 0a | 09 09 43 61 6d 70 54 69 |urn;....|..CampTi|
|00004c10| 6d 65 20 3d 20 32 2e 30 | 3b 0d 0a 0d 0a 09 09 66 |me = 2.0|;......f|
|00004c20| 6f 72 20 28 50 3d 4c 65 | 76 65 6c 2e 50 61 77 6e |or (P=Le|vel.Pawn|
|00004c30| 4c 69 73 74 3b 20 50 21 | 3d 4e 6f 6e 65 3b 20 50 |List; P!|=None; P|
|00004c40| 3d 50 2e 6e 65 78 74 50 | 61 77 6e 29 0d 0a 09 09 |=P.nextP|awn)....|
|00004c50| 09 69 66 20 28 50 2e 62 | 49 73 50 6c 61 79 65 72 |.if (P.b|IsPlayer|
|00004c60| 20 26 26 20 28 50 2e 50 | 6c 61 79 65 72 52 65 70 | && (P.P|layerRep|
|00004c70| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 54 65 61 |lication|Info.Tea|
|00004c80| 6d 20 3d 3d 20 50 6c 61 | 79 65 72 52 65 70 6c 69 |m == Pla|yerRepli|
|00004c90| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 29 |cationIn|fo.Team)|
|00004ca0| 0d 0a 09 09 09 09 26 26 | 20 28 28 50 2e 4d 6f 76 |......&&| ((P.Mov|
|00004cb0| 65 54 61 72 67 65 74 20 | 3d 3d 20 4d 6f 76 65 54 |eTarget |== MoveT|
|00004cc0| 61 72 67 65 74 29 20 7c | 7c 20 28 50 2e 4d 6f 76 |arget) ||| (P.Mov|
|00004cd0| 65 54 61 72 67 65 74 20 | 3d 3d 20 67 6f 61 6c 49 |eTarget |== goalI|
|00004ce0| 74 65 6d 29 20 0d 0a 09 | 09 09 09 09 7c 7c 20 28 |tem) ...|....|| (|
|00004cf0| 21 62 49 73 48 65 61 6c | 74 68 20 26 26 20 50 2e |!bIsHeal|th && P.|
|00004d00| 49 73 41 28 27 50 6c 61 | 79 65 72 50 61 77 6e 27 |IsA('Pla|yerPawn'|
|00004d10| 29 20 26 26 20 21 50 2e | 49 73 41 28 27 53 70 65 |) && !P.|IsA('Spe|
|00004d20| 63 74 61 74 6f 72 27 29 | 20 0d 0a 09 09 09 09 09 |ctator')| .......|
|00004d30| 09 26 26 20 28 56 53 69 | 7a 65 28 50 2e 4c 6f 63 |.&& (VSi|ze(P.Loc|
|00004d40| 61 74 69 6f 6e 20 2d 20 | 4c 6f 63 61 74 69 6f 6e |ation - |Location|
|00004d50| 29 20 3c 20 31 32 35 30 | 29 20 26 26 20 4c 69 6e |) < 1250|) && Lin|
|00004d60| 65 4f 66 53 69 67 68 74 | 54 6f 28 50 29 29 29 29 |eOfSight|To(P))))|
|00004d70| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 2f 2f 64 65 |.....{..|....//de|
|00004d80| 63 69 64 65 20 77 68 6f | 20 6e 65 65 64 73 20 69 |cide who| needs i|
|00004d90| 74 20 6d 6f 72 65 0d 0a | 09 09 09 09 69 66 20 28 |t more..|....if (|
|00004da0| 62 49 73 48 65 61 6c 74 | 68 29 0d 0a 09 09 09 09 |bIsHealt|h)......|
|00004db0| 7b 0d 0a 09 09 09 09 09 | 69 66 20 28 48 65 61 6c |{.......|if (Heal|
|00004dc0| 74 68 20 3e 20 50 2e 48 | 65 61 6c 74 68 20 2b 20 |th > P.H|ealth + |
|00004dd0| 31 30 29 0d 0a 09 09 09 | 09 09 7b 0d 0a 09 09 09 |10).....|..{.....|
|00004de0| 09 09 09 57 68 61 74 54 | 6f 44 6f 4e 65 78 74 28 |...WhatT|oDoNext(|
|00004df0| 27 53 65 65 6b 69 6e 67 | 27 2c 27 47 69 76 65 41 |'Seeking|','GiveA|
|00004e00| 77 61 79 27 29 3b 0d 0a | 09 09 09 09 09 09 72 65 |way');..|......re|
|00004e10| 74 75 72 6e 3b 0d 0a 09 | 09 09 09 09 7d 0d 0a 09 |turn;...|....}...|
|00004e20| 09 09 09 09 65 6c 73 65 | 20 69 66 20 28 28 50 2e |....else| if ((P.|
|00004e30| 49 73 49 6e 53 74 61 74 | 65 28 27 53 65 65 6b 69 |IsInStat|e('Seeki|
|00004e40| 6e 67 27 29 29 20 26 26 | 20 28 48 65 61 6c 74 68 |ng')) &&| (Health|
|00004e50| 20 3c 20 50 2e 48 65 61 | 6c 74 68 20 2d 20 31 30 | < P.Hea|lth - 10|
|00004e60| 29 29 0d 0a 09 09 09 09 | 09 09 50 2e 47 6f 74 6f |))......|..P.Goto|
|00004e70| 53 74 61 74 65 28 27 53 | 65 65 6b 69 6e 67 27 2c |State('S|eeking',|
|00004e80| 20 27 47 69 76 65 57 61 | 79 27 29 3b 0d 0a 09 09 | 'GiveWa|y');....|
|00004e90| 09 09 7d 0d 0a 09 09 09 | 09 65 6c 73 65 0d 0a 09 |..}.....|.else...|
|00004ea0| 09 09 09 7b 0d 0a 09 09 | 09 09 09 62 4f 74 68 65 |...{....|...bOthe|
|00004eb0| 72 48 61 73 20 3d 20 28 | 50 2e 46 69 6e 64 49 6e |rHas = (|P.FindIn|
|00004ec0| 76 65 6e 74 6f 72 79 54 | 79 70 65 28 67 6f 61 6c |ventoryT|ype(goal|
|00004ed0| 49 74 65 6d 2e 63 6c 61 | 73 73 29 20 21 3d 20 4e |Item.cla|ss) != N|
|00004ee0| 6f 6e 65 29 3b 0d 0a 09 | 09 09 09 09 69 66 20 28 |one);...|....if (|
|00004ef0| 21 62 48 61 76 65 49 74 | 65 6d 20 26 26 20 62 4f |!bHaveIt|em && bO|
|00004f00| 74 68 65 72 48 61 73 29 | 0d 0a 09 09 09 09 09 7b |therHas)|.......{|
|00004f10| 0d 0a 09 09 09 09 09 09 | 69 66 20 28 50 2e 49 73 |........|if (P.Is|
|00004f20| 49 6e 53 74 61 74 65 28 | 27 53 65 65 6b 69 6e 67 |InState(|'Seeking|
|00004f30| 27 29 29 0d 0a 09 09 09 | 09 09 09 09 50 2e 47 6f |')).....|....P.Go|
|00004f40| 74 6f 53 74 61 74 65 28 | 27 53 65 65 6b 69 6e 67 |toState(|'Seeking|
|00004f50| 27 2c 20 27 47 69 76 65 | 57 61 79 27 29 3b 09 0d |', 'Give|Way');..|
|00004f60| 0a 09 09 09 09 09 7d 09 | 09 09 09 09 0d 0a 09 09 |......}.|........|
|00004f70| 09 09 09 65 6c 73 65 20 | 69 66 20 28 62 48 61 76 |...else |if (bHav|
|00004f80| 65 49 74 65 6d 20 26 26 | 20 21 62 4f 74 68 65 72 |eItem &&| !bOther|
|00004f90| 48 61 73 29 0d 0a 09 09 | 09 09 09 7b 0d 0a 09 09 |Has)....|...{....|
|00004fa0| 09 09 09 09 47 6f 74 6f | 53 74 61 74 65 28 27 53 |....Goto|State('S|
|00004fb0| 65 65 6b 69 6e 67 27 2c | 20 27 47 69 76 65 57 61 |eeking',| 'GiveWa|
|00004fc0| 79 27 29 3b 0d 0a 09 09 | 09 09 09 09 72 65 74 75 |y');....|....retu|
|00004fd0| 72 6e 3b 0d 0a 09 09 09 | 09 09 7d 0d 0a 09 09 09 |rn;.....|..}.....|
|00004fe0| 09 7d 0d 0a 09 09 09 7d | 0d 0a 09 7d 0d 0a 09 09 |.}.....}|...}....|
|00004ff0| 09 09 09 09 20 0d 0a 09 | 66 75 6e 63 74 69 6f 6e |.... ...|function|
|00005000| 20 42 65 67 69 6e 53 74 | 61 74 65 28 29 0d 0a 09 | BeginSt|ate()...|
|00005010| 7b 0d 0a 09 09 2f 2f 54 | 72 61 63 65 4c 6f 67 28 |{....//T|raceLog(|
|00005020| 63 6c 61 73 73 20 24 20 | 22 5b 53 65 65 6b 69 6e |class $ |"[Seekin|
|00005030| 67 5d 22 2c 20 31 30 2c | 20 22 69 6e 20 42 65 67 |g]", 10,| "in Beg|
|00005040| 69 6e 53 74 61 74 65 28 | 29 22 29 3b 0d 0a 0d 0a |inState(|)");....|
|00005050| 2f 2f 20 20 20 20 20 20 | 20 20 53 77 69 74 63 68 |// | Switch|
|00005060| 54 6f 42 65 73 74 57 65 | 61 70 6f 6e 28 29 3b 0d |ToBestWe|apon();.|
|00005070| 0a 09 09 62 4e 6f 53 68 | 6f 6f 74 44 65 63 6f 72 |...bNoSh|ootDecor|
|00005080| 20 3d 20 66 61 6c 73 65 | 3b 0d 0a 09 09 62 43 61 | = false|;....bCa|
|00005090| 6e 46 69 72 65 20 3d 20 | 66 61 6c 73 65 3b 0d 0a |nFire = |false;..|
|000050a0| 09 09 62 43 61 6d 70 69 | 6e 67 20 3d 20 66 61 6c |..bCampi|ng = fal|
|000050b0| 73 65 3b 0d 0a 09 09 69 | 66 20 28 62 4e 6f 43 6c |se;....i|f (bNoCl|
|000050c0| 65 61 72 53 70 65 63 69 | 61 6c 29 0d 0a 09 09 09 |earSpeci|al).....|
|000050d0| 62 4e 6f 43 6c 65 61 72 | 53 70 65 63 69 61 6c 20 |bNoClear|Special |
|000050e0| 3d 20 66 61 6c 73 65 3b | 0d 0a 09 09 65 6c 73 65 |= false;|....else|
|000050f0| 0d 0a 09 09 7b 0d 0a 09 | 09 09 62 53 70 65 63 69 |....{...|..bSpeci|
|00005100| 61 6c 50 61 75 73 69 6e | 67 20 3d 20 66 61 6c 73 |alPausin|g = fals|
|00005110| 65 3b 0d 0a 09 09 09 62 | 53 70 65 63 69 61 6c 47 |e;.....b|SpecialG|
|00005120| 6f 61 6c 20 3d 20 66 61 | 6c 73 65 3b 0d 0a 09 09 |oal = fa|lse;....|
|00005130| 09 53 70 65 63 69 61 6c | 47 6f 61 6c 20 3d 20 4e |.Special|Goal = N|
|00005140| 6f 6e 65 3b 0d 0a 09 09 | 09 53 70 65 63 69 61 6c |one;....|.Special|
|00005150| 50 61 75 73 65 20 3d 20 | 30 2e 30 3b 0d 0a 09 09 |Pause = |0.0;....|
|00005160| 7d 0d 0a 09 7d 0d 0a 0d | 0a 09 66 75 6e 63 74 69 |}...}...|..functi|
|00005170| 6f 6e 20 45 6e 64 53 74 | 61 74 65 28 29 0d 0a 09 |on EndSt|ate()...|
|00005180| 7b 0d 0a 09 09 2f 2f 54 | 72 61 63 65 4c 6f 67 28 |{....//T|raceLog(|
|00005190| 63 6c 61 73 73 20 24 20 | 22 5b 53 65 65 6b 69 6e |class $ |"[Seekin|
|000051a0| 67 5d 22 2c 20 31 30 2c | 20 22 69 6e 20 45 6e 64 |g]", 10,| "in End|
|000051b0| 53 74 61 74 65 28 29 22 | 29 3b 0d 0a 0d 0a 09 09 |State()"|);......|
|000051c0| 69 66 20 28 41 6d 62 75 | 73 68 53 70 6f 74 20 21 |if (Ambu|shSpot !|
|000051d0| 3d 20 4e 6f 6e 65 29 0d | 0a 09 09 7b 0d 0a 09 09 |= None).|...{....|
|000051e0| 09 41 6d 62 75 73 68 53 | 70 6f 74 2e 74 61 6b 65 |.AmbushS|pot.take|
|000051f0| 6e 20 3d 20 66 61 6c 73 | 65 3b 0d 0a 09 09 09 69 |n = fals|e;.....i|
|00005200| 66 20 28 45 6e 65 6d 79 | 20 21 3d 20 4e 6f 6e 65 |f (Enemy| != None|
|00005210| 29 0d 0a 09 09 09 09 41 | 6d 62 75 73 68 53 70 6f |)......A|mbushSpo|
|00005220| 74 20 3d 20 4e 6f 6e 65 | 3b 0d 0a 09 09 7d 0d 0a |t = None|;....}..|
|00005230| 09 09 62 43 61 6d 70 69 | 6e 67 20 3d 20 66 61 6c |..bCampi|ng = fal|
|00005240| 73 65 3b 0d 0a 09 09 62 | 57 61 6c 6c 41 64 6a 75 |se;....b|WallAdju|
|00005250| 73 74 20 3d 20 66 61 6c | 73 65 3b 0d 0a 09 7d 0d |st = fal|se;...}.|
|00005260| 0a 0d 0a 4c 6f 6e 67 43 | 61 6d 70 3a 0d 0a 09 2f |...LongC|amp:.../|
|00005270| 2f 54 72 61 63 65 4c 6f | 67 28 63 6c 61 73 73 20 |/TraceLo|g(class |
|00005280| 24 20 22 5b 53 65 65 6b | 69 6e 67 5d 22 2c 20 31 |$ "[Seek|ing]", 1|
|00005290| 30 2c 20 22 61 74 20 4c | 6f 6e 67 43 61 6d 70 3a |0, "at L|ongCamp:|
|000052a0| 22 29 3b 0d 0a 0d 0a 09 | 62 43 61 6d 70 69 6e 67 |");.....|bCamping|
|000052b0| 20 3d 20 74 72 75 65 3b | 0d 0a 09 41 63 63 65 6c | = true;|...Accel|
|000052c0| 65 72 61 74 69 6f 6e 20 | 3d 20 76 65 63 74 28 30 |eration |= vect(0|
|000052d0| 2c 30 2c 30 29 3b 0d 0a | 09 54 77 65 65 6e 54 6f |,0,0);..|.TweenTo|
|000052e0| 57 61 69 74 69 6e 67 28 | 30 2e 31 35 29 3b 0d 0a |Waiting(|0.15);..|
|000052f0| 09 69 66 20 28 4f 72 64 | 65 72 4f 62 6a 65 63 74 |.if (Ord|erObject|
|00005300| 2e 49 73 41 28 27 41 6d | 62 75 73 68 50 6f 69 6e |.IsA('Am|bushPoin|
|00005310| 74 27 29 29 0d 0a 09 09 | 54 75 72 6e 54 6f 28 4c |t'))....|TurnTo(L|
|00005320| 6f 63 61 74 69 6f 6e 20 | 2b 20 28 41 6d 62 75 73 |ocation |+ (Ambus|
|00005330| 68 70 6f 69 6e 74 28 4f | 72 64 65 72 4f 62 6a 65 |hpoint(O|rderObje|
|00005340| 63 74 29 29 2e 6c 6f 6f | 6b 64 69 72 29 3b 0d 0a |ct)).loo|kdir);..|
|00005350| 09 53 6c 65 65 70 28 43 | 61 6d 70 54 69 6d 65 29 |.Sleep(C|ampTime)|
|00005360| 3b 0d 0a 09 47 6f 74 6f | 28 27 42 65 67 69 6e 27 |;...Goto|('Begin'|
|00005370| 29 3b 0d 0a 0d 0a 47 69 | 76 65 57 61 79 3a 09 0d |);....Gi|veWay:..|
|00005380| 0a 09 2f 2f 54 72 61 63 | 65 4c 6f 67 28 63 6c 61 |..//Trac|eLog(cla|
|00005390| 73 73 20 24 20 22 5b 53 | 65 65 6b 69 6e 67 5d 22 |ss $ "[S|eeking]"|
|000053a0| 2c 20 31 30 2c 20 22 61 | 74 20 47 69 76 65 41 77 |, 10, "a|t GiveAw|
|000053b0| 61 79 3a 22 29 3b 0d 0a | 09 62 43 61 6d 70 69 6e |ay:");..|.bCampin|
|000053c0| 67 20 3d 20 74 72 75 65 | 3b 0d 0a 09 41 63 63 65 |g = true|;...Acce|
|000053d0| 6c 65 72 61 74 69 6f 6e | 20 3d 20 76 65 63 74 28 |leration| = vect(|
|000053e0| 30 2c 30 2c 30 29 3b 0d | 0a 09 54 77 65 65 6e 54 |0,0,0);.|..TweenT|
|000053f0| 6f 57 61 69 74 69 6e 67 | 28 30 2e 31 35 29 3b 0d |oWaiting|(0.15);.|
|00005400| 0a 09 69 66 20 28 4e 65 | 61 72 57 61 6c 6c 28 32 |..if (Ne|arWall(2|
|00005410| 30 30 29 29 0d 0a 09 7b | 0d 0a 09 09 50 6c 61 79 |00))...{|....Play|
|00005420| 54 75 72 6e 69 6e 67 28 | 29 3b 0d 0a 09 09 54 75 |Turning(|);....Tu|
|00005430| 72 6e 54 6f 28 4d 6f 76 | 65 54 61 72 67 65 74 2e |rnTo(Mov|eTarget.|
|00005440| 4c 6f 63 61 74 69 6f 6e | 29 3b 0d 0a 09 7d 0d 0a |Location|);...}..|
|00005450| 09 53 6c 65 65 70 28 43 | 61 6d 70 54 69 6d 65 29 |.Sleep(C|ampTime)|
|00005460| 3b 0d 0a 09 47 6f 74 6f | 28 27 42 65 67 69 6e 27 |;...Goto|('Begin'|
|00005470| 29 3b 0d 0a 0d 0a 43 61 | 6d 70 3a 0d 0a 09 2f 2f |);....Ca|mp:...//|
|00005480| 54 72 61 63 65 4c 6f 67 | 28 63 6c 61 73 73 20 24 |TraceLog|(class $|
|00005490| 20 22 5b 53 65 65 6b 69 | 6e 67 5d 22 2c 20 31 30 | "[Seeki|ng]", 10|
|000054a0| 2c 20 22 61 74 20 43 61 | 6d 70 3a 22 29 3b 0d 0a |, "at Ca|mp:");..|
|000054b0| 09 62 43 61 6d 70 69 6e | 67 20 3d 20 74 72 75 65 |.bCampin|g = true|
|000054c0| 3b 0d 0a 09 41 63 63 65 | 6c 65 72 61 74 69 6f 6e |;...Acce|leration|
|000054d0| 20 3d 20 76 65 63 74 28 | 30 2c 30 2c 30 29 3b 0d | = vect(|0,0,0);.|
|000054e0| 0a 09 54 77 65 65 6e 54 | 6f 57 61 69 74 69 6e 67 |..TweenT|oWaiting|
|000054f0| 28 30 2e 31 35 29 3b 0d | 0a 52 65 43 61 6d 70 3a |(0.15);.|.ReCamp:|
|00005500| 0d 0a 09 2f 2f 54 72 61 | 63 65 4c 6f 67 28 63 6c |...//Tra|ceLog(cl|
|00005510| 61 73 73 20 24 20 22 5b | 53 65 65 6b 69 6e 67 5d |ass $ "[|Seeking]|
|00005520| 22 2c 20 31 30 2c 20 22 | 61 74 20 52 65 43 61 6d |", 10, "|at ReCam|
|00005530| 70 3a 22 29 3b 0d 0a 09 | 69 66 20 28 4e 65 61 72 |p:");...|if (Near|
|00005540| 57 61 6c 6c 28 32 30 30 | 29 29 0d 0a 09 7b 0d 0a |Wall(200|))...{..|
|00005550| 09 09 50 6c 61 79 54 75 | 72 6e 69 6e 67 28 29 3b |..PlayTu|rning();|
|00005560| 0d 0a 09 09 54 75 72 6e | 54 6f 28 46 6f 63 75 73 |....Turn|To(Focus|
|00005570| 29 3b 0d 0a 09 7d 0d 0a | 09 53 6c 65 65 70 28 43 |);...}..|.Sleep(C|
|00005580| 61 6d 70 54 69 6d 65 29 | 3b 0d 0a 09 69 66 20 28 |ampTime)|;...if (|
|00005590| 28 57 65 61 70 6f 6e 20 | 21 3d 20 4e 6f 6e 65 29 |(Weapon |!= None)|
|000055a0| 20 26 26 20 28 57 65 61 | 70 6f 6e 2e 41 49 52 61 | && (Wea|pon.AIRa|
|000055b0| 74 69 6e 67 20 3e 20 30 | 2e 34 29 20 26 26 20 28 |ting > 0|.4) && (|
|000055c0| 33 20 2a 20 46 52 61 6e | 64 28 29 20 3e 20 73 6b |3 * FRan|d() > sk|
|000055d0| 69 6c 6c 20 2b 20 31 29 | 29 0d 0a 09 09 47 6f 74 |ill + 1)|)....Got|
|000055e0| 6f 28 27 52 65 43 61 6d | 70 27 29 3b 0d 0a 42 65 |o('ReCam|p');..Be|
|000055f0| 67 69 6e 3a 0d 0a 09 2f | 2f 54 72 61 63 65 4c 6f |gin:.../|/TraceLo|
|00005600| 67 28 63 6c 61 73 73 20 | 24 20 22 5b 53 65 65 6b |g(class |$ "[Seek|
|00005610| 69 6e 67 5d 22 2c 20 31 | 30 2c 20 22 61 74 20 42 |ing]", 1|0, "at B|
|00005620| 65 67 69 6e 3a 22 29 3b | 0d 0a 2f 2f 20 20 20 20 |egin:");|..// |
|00005630| 53 77 69 74 63 68 54 6f | 42 65 73 74 57 65 61 70 |SwitchTo|BestWeap|
|00005640| 6f 6e 28 29 3b 0d 0a 09 | 62 43 61 6d 70 69 6e 67 |on();...|bCamping|
|00005650| 20 3d 20 66 61 6c 73 65 | 3b 0d 0a 09 54 77 65 65 | = false|;...Twee|
|00005660| 6e 54 6f 52 75 6e 6e 69 | 6e 67 28 30 2e 31 29 3b |nToRunni|ng(0.1);|
|00005670| 0d 0a 09 57 61 69 74 46 | 6f 72 4c 61 6e 64 69 6e |...WaitF|orLandin|
|00005680| 67 28 29 3b 0d 0a 09 0d | 0a 52 75 6e 41 77 61 79 |g();....|.RunAway|
|00005690| 3a 0d 0a 09 2f 2f 54 72 | 61 63 65 4c 6f 67 28 63 |:...//Tr|aceLog(c|
|000056a0| 6c 61 73 73 20 24 20 22 | 5b 53 65 65 6b 69 6e 67 |lass $ "|[Seeking|
|000056b0| 5d 22 2c 20 31 30 2c 20 | 22 61 74 20 52 75 6e 41 |]", 10, |"at RunA|
|000056c0| 77 61 79 3a 22 29 3b 0d | 0a 09 69 66 20 28 4c 6f |way:");.|..if (Lo|
|000056d0| 6f 6b 46 6f 72 49 6e 76 | 65 6e 74 6f 72 79 28 29 |okForInv|entory()|
|000056e0| 20 21 3d 20 4e 6f 6e 65 | 29 0d 0a 09 7b 0d 0a 09 | != None|)...{...|
|000056f0| 09 2f 2f 54 72 61 63 65 | 4c 6f 67 28 63 6c 61 73 |.//Trace|Log(clas|
|00005700| 73 20 24 20 22 5b 53 65 | 65 6b 69 6e 67 5d 22 2c |s $ "[Se|eking]",|
|00005710| 20 31 30 2c 20 22 49 6e | 76 65 6e 74 6f 72 79 20 | 10, "In|ventory |
|00005720| 6e 65 61 72 62 79 2c 20 | 67 6f 69 6e 67 20 74 6f |nearby, |going to|
|00005730| 20 48 75 6e 74 69 6e 67 | 20 73 74 61 74 65 22 29 | Hunting| state")|
|00005740| 3b 0d 0a 09 09 47 6f 74 | 6f 53 74 61 74 65 28 27 |;....Got|oState('|
|00005750| 48 75 6e 74 69 6e 67 27 | 29 3b 0d 0a 09 7d 0d 0a |Hunting'|);...}..|
|00005760| 09 50 69 63 6b 44 65 73 | 74 69 6e 61 74 69 6f 6e |.PickDes|tination|
|00005770| 28 29 3b 0d 0a 09 53 6c | 65 65 70 28 30 2e 30 30 |();...Sl|eep(0.00|
|00005780| 31 29 3b 0d 0a 0d 0a 2f | 2f 20 44 53 4c 20 2d 2d |1);..../|/ DSL --|
|00005790| 20 6c 61 62 65 6c 20 6e | 6f 74 20 66 6f 75 6e 64 | label n|ot found|
|000057a0| 20 65 72 72 6f 72 20 66 | 69 78 20 0d 0a 2f 2f 20 | error f|ix ..// |
|000057b0| 28 73 75 70 70 6c 79 69 | 6e 67 20 6c 61 62 65 6c |(supplyi|ng label|
|000057c0| 2c 20 62 75 74 20 6e 6f | 20 61 73 73 6f 63 69 61 |, but no| associa|
|000057d0| 74 65 64 20 63 6f 64 65 | 29 0d 0a 53 70 65 63 69 |ted code|)..Speci|
|000057e0| 61 6c 4e 61 76 69 67 3a | 0d 0a 0d 0a 4d 6f 76 69 |alNavig:|....Movi|
|000057f0| 6e 67 3a 0d 0a 09 2f 2f | 54 72 61 63 65 4c 6f 67 |ng:...//|TraceLog|
|00005800| 28 63 6c 61 73 73 20 24 | 20 22 5b 53 65 65 6b 69 |(class $| "[Seeki|
|00005810| 6e 67 5d 22 2c 20 31 30 | 2c 20 22 61 74 20 4d 6f |ng]", 10|, "at Mo|
|00005820| 76 69 6e 67 3a 22 29 3b | 0d 0a 09 2f 2f 54 72 61 |ving:");|...//Tra|
|00005830| 63 65 4c 6f 67 28 63 6c | 61 73 73 20 24 20 22 5b |ceLog(cl|ass $ "[|
|00005840| 53 65 65 6b 69 6e 67 5d | 22 2c 20 35 2c 20 22 4d |Seeking]|", 5, "M|
|00005850| 6f 76 65 54 61 72 67 65 | 74 20 3d 20 22 20 24 20 |oveTarge|t = " $ |
|00005860| 4d 6f 76 65 54 61 72 67 | 65 74 29 3b 0d 0a 0d 0a |MoveTarg|et);....|
|00005870| 09 69 66 20 28 21 49 73 | 41 6e 69 6d 61 74 69 6e |.if (!Is|Animatin|
|00005880| 67 28 29 29 0d 0a 09 09 | 41 6e 69 6d 45 6e 64 28 |g())....|AnimEnd(|
|00005890| 29 3b 0d 0a 09 69 66 20 | 28 4d 6f 76 65 54 61 72 |);...if |(MoveTar|
|000058a0| 67 65 74 20 3d 3d 20 4e | 6f 6e 65 29 0d 0a 09 7b |get == N|one)...{|
|000058b0| 0d 0a 09 09 41 63 63 65 | 6c 65 72 61 74 69 6f 6e |....Acce|leration|
|000058c0| 20 3d 20 76 65 63 74 28 | 30 2c 30 2c 30 29 3b 0d | = vect(|0,0,0);.|
|000058d0| 0a 09 09 53 6c 65 65 70 | 28 30 2e 30 29 3b 0d 0a |...Sleep|(0.0);..|
|000058e0| 09 09 47 6f 74 6f 28 27 | 52 75 6e 41 77 61 79 27 |..Goto('|RunAway'|
|000058f0| 29 3b 0d 0a 09 7d 0d 0a | 09 69 66 20 28 4d 6f 76 |);...}..|.if (Mov|
|00005900| 65 54 61 72 67 65 74 2e | 49 73 41 28 27 49 6e 76 |eTarget.|IsA('Inv|
|00005910| 65 6e 74 6f 72 79 53 70 | 6f 74 27 29 29 20 0d 0a |entorySp|ot')) ..|
|00005920| 09 7b 0d 0a 09 09 69 66 | 20 28 4c 65 76 65 6c 2e |.{....if| (Level.|
|00005930| 47 61 6d 65 2e 62 54 65 | 61 6d 47 61 6d 65 29 0d |Game.bTe|amGame).|
|00005940| 0a 09 09 09 53 68 61 72 | 65 57 69 74 68 54 65 61 |....Shar|eWithTea|
|00005950| 6d 28 29 3b 0d 0a 09 09 | 69 66 20 28 49 6e 76 65 |m();....|if (Inve|
|00005960| 6e 74 6f 72 79 53 70 6f | 74 28 4d 6f 76 65 54 61 |ntorySpo|t(MoveTa|
|00005970| 72 67 65 74 29 2e 6d 61 | 72 6b 65 64 49 74 65 6d |rget).ma|rkedItem|
|00005980| 2e 42 6f 74 44 65 73 69 | 72 65 61 62 69 6c 69 74 |.BotDesi|reabilit|
|00005990| 79 28 73 65 6c 66 29 20 | 3e 20 30 29 0d 0a 09 09 |y(self) |> 0)....|
|000059a0| 7b 0d 0a 09 09 09 69 66 | 20 28 49 6e 76 65 6e 74 |{.....if| (Invent|
|000059b0| 6f 72 79 53 70 6f 74 28 | 4d 6f 76 65 54 61 72 67 |orySpot(|MoveTarg|
|000059c0| 65 74 29 2e 6d 61 72 6b | 65 64 49 74 65 6d 2e 47 |et).mark|edItem.G|
|000059d0| 65 74 53 74 61 74 65 4e | 61 6d 65 28 29 20 3d 3d |etStateN|ame() ==|
|000059e0| 20 27 50 69 63 6b 75 70 | 27 29 0d 0a 09 09 09 09 | 'Pickup|')......|
|000059f0| 4d 6f 76 65 54 61 72 67 | 65 74 20 3d 20 49 6e 76 |MoveTarg|et = Inv|
|00005a00| 65 6e 74 6f 72 79 53 70 | 6f 74 28 4d 6f 76 65 54 |entorySp|ot(MoveT|
|00005a10| 61 72 67 65 74 29 2e 6d | 61 72 6b 65 64 49 74 65 |arget).m|arkedIte|
|00005a20| 6d 3b 0d 0a 09 09 09 65 | 6c 73 65 20 69 66 20 28 |m;.....e|lse if (|
|00005a30| 56 53 69 7a 65 28 4c 6f | 63 61 74 69 6f 6e 20 2d |VSize(Lo|cation -|
|00005a40| 20 4d 6f 76 65 54 61 72 | 67 65 74 2e 4c 6f 63 61 | MoveTar|get.Loca|
|00005a50| 74 69 6f 6e 29 20 3c 20 | 43 6f 6c 6c 69 73 69 6f |tion) < |Collisio|
|00005a60| 6e 52 61 64 69 75 73 29 | 0d 0a 09 09 09 7b 0d 0a |nRadius)|.....{..|
|00005a70| 09 09 09 09 43 61 6d 70 | 54 69 6d 65 20 3d 20 33 |....Camp|Time = 3|
|00005a80| 2e 35 20 2b 20 46 52 61 | 6e 64 28 29 20 2d 20 73 |.5 + FRa|nd() - s|
|00005a90| 6b 69 6c 6c 3b 0d 0a 09 | 09 09 09 47 6f 74 6f 28 |kill;...|...Goto(|
|00005aa0| 27 43 61 6d 70 27 29 3b | 0d 0a 09 09 09 7d 0d 0a |'Camp');|.....}..|
|00005ab0| 09 09 7d 0d 0a 09 7d 0d | 0a 09 62 43 61 6d 70 69 |..}...}.|..bCampi|
|00005ac0| 6e 67 20 3d 20 66 61 6c | 73 65 3b 0d 0a 20 20 20 |ng = fal|se;.. |
|00005ad0| 20 50 6c 61 79 52 75 6e | 6e 69 6e 67 28 29 3b 0d | PlayRun|ning();.|
|00005ae0| 0a 09 4d 6f 76 65 54 6f | 77 61 72 64 28 4d 6f 76 |..MoveTo|ward(Mov|
|00005af0| 65 54 61 72 67 65 74 29 | 3b 0d 0a 09 47 6f 74 6f |eTarget)|;...Goto|
|00005b00| 28 27 52 75 6e 41 77 61 | 79 27 29 3b 0d 0a 0d 0a |('RunAwa|y');....|
|00005b10| 54 61 6b 65 48 69 74 3a | 0d 0a 09 2f 2f 54 72 61 |TakeHit:|...//Tra|
|00005b20| 63 65 4c 6f 67 28 63 6c | 61 73 73 20 24 20 22 5b |ceLog(cl|ass $ "[|
|00005b30| 53 65 65 6b 69 6e 67 5d | 22 2c 20 31 30 2c 20 22 |Seeking]|", 10, "|
|00005b40| 61 74 20 54 61 6b 65 48 | 69 74 3a 22 29 3b 0d 0a |at TakeH|it:");..|
|00005b50| 09 54 77 65 65 6e 54 6f | 52 75 6e 6e 69 6e 67 28 |.TweenTo|Running(|
|00005b60| 30 2e 31 32 29 3b 0d 0a | 09 47 6f 74 6f 28 27 4d |0.12);..|.Goto('M|
|00005b70| 6f 76 69 6e 67 27 29 3b | 0d 0a 0d 0a 4c 61 6e 64 |oving');|....Land|
|00005b80| 65 64 3a 0d 0a 09 2f 2f | 54 72 61 63 65 4c 6f 67 |ed:...//|TraceLog|
|00005b90| 28 63 6c 61 73 73 20 24 | 20 22 5b 53 65 65 6b 69 |(class $| "[Seeki|
|00005ba0| 6e 67 5d 22 2c 20 31 30 | 2c 20 22 61 74 20 4c 61 |ng]", 10|, "at La|
|00005bb0| 6e 64 65 64 3a 22 29 3b | 0d 0a 09 69 66 20 28 4d |nded:");|...if (M|
|00005bc0| 6f 76 65 54 61 72 67 65 | 74 20 3d 3d 20 4e 6f 6e |oveTarge|t == Non|
|00005bd0| 65 29 20 2f 2f 46 49 58 | 4d 45 20 2d 20 64 6f 20 |e) //FIX|ME - do |
|00005be0| 74 68 69 73 20 69 6e 20 | 61 6c 6c 20 6c 61 6e 64 |this in |all land|
|00005bf0| 65 64 3a 20 21 21 21 0d | 0a 09 09 47 6f 74 6f 28 |ed: !!!.|...Goto(|
|00005c00| 27 52 75 6e 41 77 61 79 | 27 29 3b 0d 0a 09 47 6f |'RunAway|');...Go|
|00005c10| 74 6f 28 27 4d 6f 76 69 | 6e 67 27 29 3b 0d 0a 0d |to('Movi|ng');...|
|00005c20| 0a 41 64 6a 75 73 74 46 | 72 6f 6d 57 61 6c 6c 3a |.AdjustF|romWall:|
|00005c30| 0d 0a 09 2f 2f 54 72 61 | 63 65 4c 6f 67 28 63 6c |...//Tra|ceLog(cl|
|00005c40| 61 73 73 20 24 20 22 5b | 53 65 65 6b 69 6e 67 5d |ass $ "[|Seeking]|
|00005c50| 22 2c 20 31 30 2c 20 22 | 20 61 74 20 41 64 6a 75 |", 10, "| at Adju|
|00005c60| 73 74 46 72 6f 6d 57 61 | 6c 6c 3a 22 29 3b 0d 0a |stFromWa|ll:");..|
|00005c70| 09 62 57 61 6c 6c 41 64 | 6a 75 73 74 20 3d 20 74 |.bWallAd|just = t|
|00005c80| 72 75 65 3b 0d 0a 09 62 | 43 61 6d 70 69 6e 67 20 |rue;...b|Camping |
|00005c90| 3d 20 66 61 6c 73 65 3b | 0d 0a 09 53 74 72 61 66 |= false;|...Straf|
|00005ca0| 65 54 6f 28 44 65 73 74 | 69 6e 61 74 69 6f 6e 2c |eTo(Dest|ination,|
|00005cb0| 20 46 6f 63 75 73 29 3b | 20 0d 0a 09 44 65 73 74 | Focus);| ...Dest|
|00005cc0| 69 6e 61 74 69 6f 6e 20 | 3d 20 46 6f 63 75 73 3b |ination |= Focus;|
|00005cd0| 20 0d 0a 20 20 20 20 50 | 6c 61 79 52 75 6e 6e 69 | .. P|layRunni|
|00005ce0| 6e 67 28 29 3b 0d 0a 09 | 4d 6f 76 65 54 6f 28 44 |ng();...|MoveTo(D|
|00005cf0| 65 73 74 69 6e 61 74 69 | 6f 6e 29 3b 0d 0a 09 62 |estinati|on);...b|
|00005d00| 57 61 6c 6c 41 64 6a 75 | 73 74 20 3d 20 66 61 6c |WallAdju|st = fal|
|00005d10| 73 65 3b 0d 0a 09 47 6f | 74 6f 28 27 4d 6f 76 69 |se;...Go|to('Movi|
|00005d20| 6e 67 27 29 3b 0d 0a 0d | 0a 53 68 6f 6f 74 44 65 |ng');...|.ShootDe|
|00005d30| 63 6f 72 61 74 69 6f 6e | 3a 0d 0a 09 2f 2f 54 72 |coration|:...//Tr|
|00005d40| 61 63 65 4c 6f 67 28 63 | 6c 61 73 73 20 24 20 22 |aceLog(c|lass $ "|
|00005d50| 5b 53 65 65 6b 69 6e 67 | 5d 22 2c 20 31 30 2c 20 |[Seeking|]", 10, |
|00005d60| 22 61 74 20 53 68 6f 6f | 74 44 65 63 6f 72 61 74 |"at Shoo|tDecorat|
|00005d70| 69 6f 6e 3a 22 29 3b 0d | 0a 09 54 75 72 6e 54 6f |ion:");.|..TurnTo|
|00005d80| 77 61 72 64 28 54 61 72 | 67 65 74 29 3b 0d 0a 09 |ward(Tar|get);...|
|00005d90| 69 66 20 28 54 61 72 67 | 65 74 20 21 3d 20 4e 6f |if (Targ|et != No|
|00005da0| 6e 65 29 0d 0a 09 7b 0d | 0a 09 09 46 69 72 65 57 |ne)...{.|...FireW|
|00005db0| 65 61 70 6f 6e 28 29 3b | 0d 0a 09 09 62 41 6c 74 |eapon();|....bAlt|
|00005dc0| 46 69 72 65 20 3d 20 30 | 3b 0d 0a 09 09 62 46 69 |Fire = 0|;....bFi|
|00005dd0| 72 65 20 3d 20 30 3b 0d | 0a 09 7d 0d 0a 09 47 6f |re = 0;.|..}...Go|
|00005de0| 74 6f 28 27 52 75 6e 41 | 77 61 79 27 29 3b 0d 0a |to('RunA|way');..|
|00005df0| 7d 0d 0a 0d 0a 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |}....///|////////|
|00005e00| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00005e10| 2f 2f 2f 2f 2f 2f 20 48 | 55 4e 54 49 4e 47 20 2f |////// H|UNTING /|
|00005e20| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00005e30| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00005e40| 2f 2f 2f 2f 2f 2f 2f 0d | 0a 2f 2f 0d 0a 2f 2f 20 |///////.|.//..// |
|00005e50| 48 75 6e 74 69 6e 67 20 | 69 73 20 6d 69 6c 6c 69 |Hunting |is milli|
|00005e60| 6e 67 20 61 72 6f 75 6e | 64 20 61 6e 20 61 72 65 |ng aroun|d an are|
|00005e70| 61 20 6c 6f 6f 6b 69 6e | 67 20 66 6f 72 20 70 69 |a lookin|g for pi|
|00005e80| 63 6b 75 70 73 0d 0a 2f | 2f 0d 0a 73 74 61 74 65 |ckups../|/..state|
|00005e90| 20 48 75 6e 74 69 6e 67 | 0d 0a 7b 0d 0a 09 69 67 | Hunting|..{...ig|
|00005ea0| 6e 6f 72 65 73 20 45 6e | 65 6d 79 4e 6f 74 56 69 |nores En|emyNotVi|
|00005eb0| 73 69 62 6c 65 3b 0d 0a | 0d 0a 09 66 75 6e 63 74 |sible;..|...funct|
|00005ec0| 69 6f 6e 20 42 75 6d 70 | 28 61 63 74 6f 72 20 4f |ion Bump|(actor O|
|00005ed0| 74 68 65 72 29 0d 0a 09 | 7b 0d 0a 09 09 6c 6f 63 |ther)...|{....loc|
|00005ee0| 61 6c 20 76 65 63 74 6f | 72 20 56 65 6c 44 69 72 |al vecto|r VelDir|
|00005ef0| 2c 20 4f 74 68 65 72 44 | 69 72 3b 0d 0a 09 09 6c |, OtherD|ir;....l|
|00005f00| 6f 63 61 6c 20 66 6c 6f | 61 74 20 73 70 65 65 64 |ocal flo|at speed|
|00005f10| 3b 0d 0a 0d 0a 09 09 2f | 2f 54 72 61 63 65 4c 6f |;....../|/TraceLo|
|00005f20| 67 28 63 6c 61 73 73 20 | 24 20 22 5b 48 75 6e 74 |g(class |$ "[Hunt|
|00005f30| 69 6e 67 5d 22 2c 20 31 | 30 2c 20 22 69 6e 20 42 |ing]", 1|0, "in B|
|00005f40| 75 6d 70 28 22 20 24 20 | 4f 74 68 65 72 2e 6e 61 |ump(" $ |Other.na|
|00005f50| 6d 65 20 24 20 22 29 22 | 29 3b 0d 0a 0d 0a 09 09 |me $ ")"|);......|
|00005f60| 69 66 20 28 50 61 77 6e | 28 4f 74 68 65 72 29 20 |if (Pawn|(Other) |
|00005f70| 21 3d 20 4e 6f 6e 65 29 | 0d 0a 09 09 7b 0d 0a 09 |!= None)|....{...|
|00005f80| 09 09 69 66 20 28 28 4f | 74 68 65 72 20 3d 3d 20 |..if ((O|ther == |
|00005f90| 45 6e 65 6d 79 29 20 7c | 7c 20 53 65 74 45 6e 65 |Enemy) ||| SetEne|
|00005fa0| 6d 79 28 50 61 77 6e 28 | 4f 74 68 65 72 29 29 29 |my(Pawn(|Other)))|
|00005fb0| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 69 66 20 28 |.....{..|....if (|
|00005fc0| 46 52 61 6e 64 28 29 20 | 3c 20 41 67 67 72 65 73 |FRand() |< Aggres|
|00005fd0| 73 69 76 65 6e 65 73 73 | 29 0d 0a 09 09 09 09 09 |siveness|).......|
|00005fe0| 72 65 74 75 72 6e 3b 0d | 0a 09 09 09 09 62 52 65 |return;.|.....bRe|
|00005ff0| 61 64 79 54 6f 41 74 74 | 61 63 6b 20 3d 20 74 72 |adyToAtt|ack = tr|
|00006000| 75 65 3b 0d 0a 09 09 09 | 09 57 68 61 74 54 6f 44 |ue;.....|.WhatToD|
|00006010| 6f 4e 65 78 74 28 27 41 | 74 74 61 63 6b 69 6e 67 |oNext('A|ttacking|
|00006020| 27 29 3b 0d 0a 09 09 09 | 7d 0d 0a 09 09 09 72 65 |');.....|}.....re|
|00006030| 74 75 72 6e 3b 0d 0a 09 | 09 7d 0d 0a 2f 2f 09 09 |turn;...|.}..//..|
|00006040| 69 66 20 28 54 69 6d 65 | 72 52 61 74 65 20 3c 3d |if (Time|rRate <=|
|00006050| 20 30 29 0d 0a 2f 2f 09 | 09 09 73 65 74 54 69 6d | 0)..//.|..setTim|
|00006060| 65 72 28 31 2e 30 2c 20 | 66 61 6c 73 65 29 3b 0d |er(1.0, |false);.|
|00006070| 0a 09 09 73 70 65 65 64 | 20 3d 20 56 53 69 7a 65 |...speed| = VSize|
|00006080| 28 56 65 6c 6f 63 69 74 | 79 29 3b 0d 0a 09 09 69 |(Velocit|y);....i|
|00006090| 66 20 28 73 70 65 65 64 | 20 3e 20 31 29 0d 0a 09 |f (speed| > 1)...|
|000060a0| 09 7b 0d 0a 09 09 09 56 | 65 6c 44 69 72 20 3d 20 |.{.....V|elDir = |
|000060b0| 56 65 6c 6f 63 69 74 79 | 2f 73 70 65 65 64 3b 0d |Velocity|/speed;.|
|000060c0| 0a 09 09 09 56 65 6c 44 | 69 72 2e 5a 20 3d 20 30 |....VelD|ir.Z = 0|
|000060d0| 3b 0d 0a 09 09 09 4f 74 | 68 65 72 44 69 72 20 3d |;.....Ot|herDir =|
|000060e0| 20 4f 74 68 65 72 2e 4c | 6f 63 61 74 69 6f 6e 20 | Other.L|ocation |
|000060f0| 2d 20 4c 6f 63 61 74 69 | 6f 6e 3b 0d 0a 09 09 09 |- Locati|on;.....|
|00006100| 4f 74 68 65 72 44 69 72 | 2e 5a 20 3d 20 30 3b 0d |OtherDir|.Z = 0;.|
|00006110| 0a 09 09 09 4f 74 68 65 | 72 44 69 72 20 3d 20 4e |....Othe|rDir = N|
|00006120| 6f 72 6d 61 6c 28 4f 74 | 68 65 72 44 69 72 29 3b |ormal(Ot|herDir);|
|00006130| 0d 0a 09 09 09 69 66 20 | 28 28 56 65 6c 44 69 72 |.....if |((VelDir|
|00006140| 20 44 6f 74 20 4f 74 68 | 65 72 44 69 72 29 20 3e | Dot Oth|erDir) >|
|00006150| 20 30 2e 39 29 0d 0a 09 | 09 09 7b 0d 0a 09 09 09 | 0.9)...|..{.....|
|00006160| 09 56 65 6c 6f 63 69 74 | 79 2e 58 20 3d 20 56 65 |.Velocit|y.X = Ve|
|00006170| 6c 44 69 72 2e 59 3b 0d | 0a 09 09 09 09 56 65 6c |lDir.Y;.|.....Vel|
|00006180| 6f 63 69 74 79 2e 59 20 | 3d 20 2d 31 20 2a 20 56 |ocity.Y |= -1 * V|
|00006190| 65 6c 44 69 72 2e 58 3b | 0d 0a 09 09 09 09 56 65 |elDir.X;|......Ve|
|000061a0| 6c 6f 63 69 74 79 20 2a | 3d 20 46 4d 61 78 28 73 |locity *|= FMax(s|
|000061b0| 70 65 65 64 2c 20 32 30 | 30 29 3b 0d 0a 09 09 09 |peed, 20|0);.....|
|000061c0| 7d 0d 0a 09 09 7d 0d 0a | 09 09 65 6c 73 65 20 69 |}....}..|..else i|
|000061d0| 66 20 28 62 43 61 6d 70 | 69 6e 67 29 0d 0a 09 09 |f (bCamp|ing)....|
|000061e0| 09 47 6f 74 6f 53 74 61 | 74 65 28 27 48 75 6e 74 |.GotoSta|te('Hunt|
|000061f0| 69 6e 67 27 29 3b 0d 0a | 09 09 44 69 73 61 62 6c |ing');..|..Disabl|
|00006200| 65 28 27 42 75 6d 70 27 | 29 3b 0d 0a 09 7d 0d 0a |e('Bump'|);...}..|
|00006210| 09 0d 0a 09 66 75 6e 63 | 74 69 6f 6e 20 48 61 6e |....func|tion Han|
|00006220| 64 6c 65 48 65 6c 70 4d | 65 73 73 61 67 65 46 72 |dleHelpM|essageFr|
|00006230| 6f 6d 28 50 61 77 6e 20 | 4f 74 68 65 72 29 0d 0a |om(Pawn |Other)..|
|00006240| 09 7b 0d 0a 09 09 2f 2f | 54 72 61 63 65 4c 6f 67 |.{....//|TraceLog|
|00006250| 28 63 6c 61 73 73 20 24 | 20 22 5b 48 75 6e 74 69 |(class $| "[Hunti|
|00006260| 6e 67 5d 22 2c 20 31 30 | 2c 20 22 69 6e 20 48 61 |ng]", 10|, "in Ha|
|00006270| 6e 64 6c 65 4d 65 73 73 | 61 67 65 46 72 6f 6d 28 |ndleMess|ageFrom(|
|00006280| 22 20 24 20 4f 74 68 65 | 72 2e 6e 61 6d 65 20 24 |" $ Othe|r.name $|
|00006290| 20 22 29 22 29 3b 0d 0a | 0d 0a 09 09 69 66 20 28 | ")");..|....if (|
|000062a0| 28 48 65 61 6c 74 68 20 | 3e 20 37 30 29 20 26 26 |(Health |> 70) &&|
|000062b0| 20 28 57 65 61 70 6f 6e | 2e 41 49 52 61 74 69 6e | (Weapon|.AIRatin|
|000062c0| 67 20 3e 20 30 2e 35 29 | 20 26 26 20 28 4f 74 68 |g > 0.5)| && (Oth|
|000062d0| 65 72 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |er.Playe|rReplica|
|000062e0| 74 69 6f 6e 49 6e 66 6f | 2e 54 65 61 6d 20 3d 3d |tionInfo|.Team ==|
|000062f0| 20 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 | PlayerR|eplicati|
|00006300| 6f 6e 49 6e 66 6f 2e 54 | 65 61 6d 29 0d 0a 09 09 |onInfo.T|eam)....|
|00006310| 09 26 26 20 28 4f 74 68 | 65 72 2e 45 6e 65 6d 79 |.&& (Oth|er.Enemy|
|00006320| 20 21 3d 20 4e 6f 6e 65 | 29 0d 0a 09 09 09 26 26 | != None|).....&&|
|00006330| 20 28 56 53 69 7a 65 28 | 4f 74 68 65 72 2e 45 6e | (VSize(|Other.En|
|00006340| 65 6d 79 2e 4c 6f 63 61 | 74 69 6f 6e 20 2d 20 4c |emy.Loca|tion - L|
|00006350| 6f 63 61 74 69 6f 6e 29 | 20 3c 20 31 32 30 30 29 |ocation)| < 1200)|
|00006360| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 53 65 74 45 6e |)....{..|...SetEn|
|00006370| 65 6d 79 28 4f 74 68 65 | 72 2e 45 6e 65 6d 79 29 |emy(Othe|r.Enemy)|
|00006380| 3b 0d 0a 09 09 09 57 68 | 61 74 54 6f 44 6f 4e 45 |;.....Wh|atToDoNE|
|00006390| 78 74 28 27 41 74 74 61 | 63 6b 69 6e 67 27 29 3b |xt('Atta|cking');|
|000063a0| 0d 0a 09 09 7d 0d 0a 09 | 7d 0d 0a 0d 0a 09 66 75 |....}...|}.....fu|
|000063b0| 6e 63 74 69 6f 6e 20 54 | 61 6b 65 44 61 6d 61 67 |nction T|akeDamag|
|000063c0| 65 28 69 6e 74 20 44 61 | 6d 61 67 65 2c 20 50 61 |e(int Da|mage, Pa|
|000063d0| 77 6e 20 69 6e 73 74 69 | 67 61 74 65 64 42 79 2c |wn insti|gatedBy,|
|000063e0| 20 56 65 63 74 6f 72 20 | 68 69 74 6c 6f 63 61 74 | Vector |hitlocat|
|000063f0| 69 6f 6e 2c 20 0d 0a 09 | 09 09 09 09 09 09 56 65 |ion, ...|......Ve|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.